Move createion of update revision outside of the lock