Update _window_flip.pyx

Fix: Calling gil-requiring function not allowed without gil