Fixed #22977 -- Check clashes between related_name and manager name

https://code.djangoproject.com/ticket/22977