Fixed #23630 -- Made AlterModelTable rename auto-created M2M tables.

 `for (old_field,new_field) in zip(new_model._meta.local_many_to_many, old_model._meta.local_many_to_many):` makes the code in the loop simpler and removes the need for the hack.