unlock the mutex before freeing it when shutdown of audio interface