Jacek Caban : winmm: Use condition variable to sleep in timer thread.