42fb947780
Replace SDL_LockAudioDevice() by a local mutex, to minimize the lock section and to make the code independent of SDL.