qt/glrenderer: don't attempt to use QWindow from non-Qt main thread