Improve of_condition_wait error handling on Win32