Block working tree while cloning when using libgit2