Also allow to override how direct ByteBuffers are freed