nir: Support deref instructions in lower_global_vars_to_local