Workaround for JENKINS-20941: Stored git credentials not used when submodule is updated

In case we have to update any submodules, we use the key of one of the
main repositories. More data about the bug:

 * https://issues.jenkins-ci.org/browse/JENKINS-20941
 * https://github.com/jenkinsci/git-client-plugin/pull/130