nir: add glsl_get_std140_size() helper