libthreads: thread_join: return 'int' as status