C memory allocator based on pools, thread safe.