Add pthread_create error hangling.