Fixed #23799 -- squashmigrations --no-optimize still optimizes

I opted to not remove it because it might become useful when the migration optimizer breaks for some reason.
Well, I think this is a "bug" not a feature. Is it too risky to backport to 1.7?