tdb2: use ccan/endian