found bug, pthread_lock instead of pthread_unlock -_-