Use a C11-like mutex wrapper instead of CRITICAL_SECTIONs
Implement a C11-like thread wrapper and use it in mmdevapi and pulseaudio
Fix Windows' almtx_timedlock
Move the threads and mutex wrappers to threads.c
Remove the old thread wrappers for the new ones
Use althrd_yield instead of alsched_yield
Avoid using a Sleep() wrapper