Give GTDiff a strong ref to its repository

Under the covers libgit2 could try to access the `git_diff`’s repository, so we need to ensure that it stays alive as long as we are.