glsl: fix glsl optimization infinite loop from copy_propagation_elements