lib/tdb: Fix format string errors found by -Werror=format in tdb tests