Checkout master between getSubmodules and notSubmodules checkout calls

Refer to JENKINS-22510 for a more detailed description of what is
observed with git 1.9.0.

If getSubmodules checkout plus notSubmodules checkout is immediately
followed by getSubmodules checkout, the notSubmodules checkout fails.