move to system malloc to avoid overhead

Allocations via enif_alloc and friends incur double accounting overhead when used in nifs (potentially everywhere?), and the extra 16 bytes per key is especially painful in bitcask.  This change is quite simple and at first glance has no performance impact, while using considerably less memory.