Merge pull request #4754 from libgit2/ethomson/threads threads::diff: use separate git_repository objects