Fix deadlock with the OS X sink

Don't block the main thread in the expose if we haven't set
the window handle yet