Fixed the "Assertion `!pthread_mutex_lock(m)' failed" error.