Add second argument to pthread_join