Add pthread_mutex_trylock and unlock.