nir: Avoid visiting instructions multiple times in nir_instr_free_and_dce.
Sadly need to poke a bit in the src internals to avoid using yet another heap allocated datastructure.
Fixes: 52515485 ("nir: Add a nir_instr_remove that recursively removes dead code.") Closes: #5323 (closed)