add pthread_mutex