I think I fixed it. The thing is that throughAdded some output to the lock/unlock functions to see if it helps illustrate the issue better I also fiddled with the cleanup function in db-update a bit, so it only calls repo_unlock on an error. Didnt commit the changes, but lets see if that helps