Replace AtomicBoolean with Object as the audio thread lock