Make threads work on Windows 98

Windows 98 does not like the pointer to a DWORD to store the thread ID
being NULL.