nir: add glsl_get_std430_base_alignment() helper