libthreads: make typedef for 'thread_id_t'