threads: change thrd_t to store Thread pointer