microsoft/clc: Fix image lowering pass to only erase variables at the end
Otherwise, if a variable has multiple derefs in a shader, we'll crash trying to remove it a second time. No idea how that can happen though, seems derefs got sunk by opt_dead_cf
in a Photoshop kernel.