fix tricky audio threading bug