move thread stack to thread allocator