mesa: glsl: fix error detection of writing to read-only variables