libthreads: thrd_join() always return 0