glsl: refactor get_variable_being_redeclared() to return always an ir_variable pointer