provide pthread specific (thread local storage) functions
pthread_cond for windows: switch from SuspendThread to WaitForSingleObject+ThreadLocalStorage