So assuming 1 thread, the thread acquires a lock via:
pthread_mutex_lock(&lock);
then before unlocking, it again reaches a line that is:
pthread_mutex_lock(&lock);
Will the pthread library block the advancement of the thread, or will it recognize that the thread already holds the lock, thus letting it pass?