glsl/linker: Mark no locations as invalid instead of marking all locations