passing right thing for canceled thread in thread_join