TestWebKitAPI: initialize the main thread before running tests