[Bug 29262] Creating windows in threads may deadlock