del transaction before lock before wlock
This way rollbacks happen while the repo is still locked.
Deleting lock before wlock is not strictly necessary, but is
more consistent with the locking order.
abort: error: Connection refused255copy: No such file or directoryabort: HTTP Error 4040