fixed mutex bug in audio lib