glsl: fix slow linking of uniforms in the nir linker