Same as #2553, for 1-3-stable

This is the same as #2553, but is for 1-3-stable. The only difference is the `adjustments.rb` file which uses `locked` attribute, rather than `state`.