WinMM: fix random crashing when shutting down

never experienced any crashing with msvc but luckily I tried also with mingw. 
if you call waveOutReset before killing the thread, audio processing starts all over again because the thread is still running. then when you try to delete those sample buffers, audio driver might still be using them -> crash. kinda stupid mistake left by me :)