Don't forgot to unlock the mutex.