nir: add C wrapper around glsl_type::record_location_offset