Increment reference counter in git_repository_set_config

This fixes #1365
Merge pull request #1368 from scunz/inc_ref

Increment reference counter in git_repository_set_config