ao/wasapi: reenable the reset function

add an atomic flag indicating when the audio is being read and wait
for it to switch off before returning