Clean up per-thread mheap setup.