Merge pull request #1719 from libgit2/arrbee/threading-primitives Update git__swap threading primitive