tdb_compat: adapt to tdb2 API change.