nir/spirv: Add a storage_class_to_mode helper