Bugfix: Return type of invokeInGuiThreadSync() was incorrect.
Bugfix: Avoided bad function call exception.
Bugfix: ProgressWidgetContainer::Impl::createProgress() is now thread-safe.