Synchronize the window removal between main thread and render thread