[1.7.x] Fixed #23121: AlterModelOptions operation not changing state right