tdb2: use ccan/err instead of err.h