Fix potential race/crash in createAudioQueue