Fixed duplicate WaitForSingleObject on client thread.