tdb2: tdb_foreach()