Adding linked list pointers into thread_t