nir/opt_undef: Convert to use nir_shader_instructions_pass().