pthread_join is able to return values