core: rename tcb_t into thread_t