glsl_to_tgsi: fix a reference leak on an error path