egl_dri2: move glFlush out of struct dri2_egl_driver