fix. Ensure lock file is created in revert..

Change-Id: I14cd90347a2fbb7103677d6912f33ef223ee442e