Avoid calling QWindowSystemInterface when loading platform theme
When the system events are delivered synchronously, the platform theme should avoid calling QWindowSystemInterface::handleThemeChange() while it loads. The reason for that is that the QGuiApplication will react to the theme change event, but since the platform theme is not fully initialized yet, the gui app will crash.