pid_t to pthread_t