Add lock upgrade mode.
Rename to LockUpgradeRule.
Add lock upgrade rule tests.