Since tarantool can use different allocators, we need a single interface for getting statistics that is suitable for all allocators. Follow-up #5419