nir: When nir_lower_vars_to_explicit_types is run on temps, update scratch_size