glsl2: Unmark unwritten varyings as varying.

This fixes an assertion failure in ir_to_mesa, and the varying won't
take up varying space.
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index e7bc700..ec3cc01 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -1132,6 +1132,7 @@
        * by the previous stage.
        */
       var->shader_in = (var->location != -1);
+      var->mode = ir_var_auto;
    }
 }