link.Elf: fix UAF in lowerAnonDecl

The main problem being fixed here is there was a getOrPut() that held on
to a reference to the value pointer too long, and meanwhile the call to
`lowerConst` ended up being recursive and mutating the hash map,
invoking undefined behavior.

caught via #17719
098a07dc45Andrew Kelley committed on 10/26/2023, 2:57:02 AMparentcbcef2d
1 file changedLine totals unavailable