Fix STEADY_STATE operator for model local variables.

Thanks to Tom Holden for spotting the bug.

(cherry picked from commit bdfe4f42492419e8ea2547eda14a39b1f88b37fe)