lib/tdb: fix missing return 0 code.