r23769: Move removal of the tdb from the generic tdb_validate function