Fixed #22293 - do not try renaming tables to itself

`_alter_many_to_many` was calling alter_db_table also if the db_table
has not changed.
Fixed this for both implementations of _alter_many_to_many, instead of
in `alter_db_table` itself (more implementations).