Update thready.c for windows.

This change was accidentally left out of the last commit.