st/mesa: make st_flush do what glFlush does