Don't recreate workspace when using Repository Sharing

When using Repository Sharing, the working copy is always recloned (from the slave cache), which can take a long time on large repos.

This fixes the logic used to detect whether a workspace copy can be reused to support Repository Sharing.

[JENKINS-15829](https://issues.jenkins-ci.org/browse/JENKINS-15829)