pthread_self and pthread_equal