use our own locks instead of XInitThreads()