Jacek Caban : dsound: Wait on thread handle instead of dedicated event in DirectSoundDevice_Release.