Fix lock_version logic in repairer

We actually want to minor_version the edition after reloading it, as
reload resets the minor_version flag.

This also adds a test that verifies the behavior.