fixed #23503 -- fixed renaming of model with self-referential m2m field

not sure the skip is needed as the test works on SQlite.
Also, I'm not sure the table's created by your test are cleaned up? 
Could you also add 1.7.1 release notes?