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.
All it does is _not do_ stuff, so I don't think it's risky. Who would do that and, if it's me, how? Just submit the same PR on the stable branch?