Add pthread_equal inline function.