glsl: prevent spurious Valgrind errors when serializing NIR