rbd: use JNA LongByReference type to marshall C ssize_t type