[Bug 30807] Thread IDs are &~3 (multiples of 4) on Windows. Application presumes this behavior and fails