ctdb: Introduce buffer.offset to avoid memmove