Fix locks upgrade.