Plugins: Workaround a crash when building statically.

QQmlImport races with us and calles instance() for each of the
statically linked plugins, resulting in our plugins being created
in a different thread, which then crashes because QML engine
doesn't like to connect to stuff in another thread.