pthread: check for pthread_create, not pthread_join