Raise proper exception when lightweight checkout is out of date during commit.