nir: lower_non_uniform_access: iterate over instructions safely