Fix the Win32 implementation of the 'thread' module.