Updating pthread_create & join in the wrapper