tdb2: make TDB1 code use tdb2's TDB_ERROR and tdb_logerr()