tdb_compat: add "TDB_COMPAT_USE_TDB2" environment variable