[kihx] Make LFHAllocator thread-safe.

- Apply a per-thread allocator approach to thread-safe memory allocation.
- Record more memory allocation information for debugging.