Add `detach()` to thread_t