Fixed bug where if an attribute was unlocked and options menu open when sheet upgraded to 1.7.1, the lock function would work with the lock icon open/close state reversed. Now lock icon should display correct state with open/close options menu. Fixed upgrade code, was not reliably detecting lesser version in game, but worked fine in sandbox.