reusable implementation of freeZmqMessage for zero copy data sending