pthread_join working better