Investigating the XInitThreads deadlock bug