[1.6.x] Fixed #20820 -- Model inheritance + m2m fixture loading regression

Tests by Tim Graham, report from jeroen.pulles@redslider.net.

Backport of 1ed77e7782 from master