Fixed #22047 -- detecting related_name clash with inheritance

Thanks to mondone for fruitful colaboration.