mymemory, threads: add allocator specifically for Thread