[core] Correctly initialize our Xwt toolkit

We *must* do this on the main thread. It is not correct to allow the
first invocation of this property to happen on another thread as that
can end up with the native toolkit being initialized on a threadpool
thread thus breaking all cross-thread checks.