qt: CWE-367: fix TOCTOU race condition in CompositorDirectComposition
This is a potential (but unlikely, since scene graph initialization is expensive and unlikely to be completed that fast) case when threaded scene graph is in use, which is the default.
QQuickView::isSceneGraphInitialized()
is also not reported to be thread safe, I'm not sure if we can use it in this manner.
Edited by Fatih Uzunoğlu