tdb: set tdb->name early, as it's needed for tdb_name()