[PULL 10/27] util: fix race setting thread name on Win32