Rearrange thread_t.