Fix locking in the mirage backend
Fix locking in the mirage backend

This locking scheme is a bit weird anyway but having a mirage-fs backend
for ocaml-git is a bit strange anyway.

mirage/ocaml-git,mirage/ocaml-git,mirage/ocaml-git