glsl: fix possible memory leak in nir uniform linker