Ensure git scm does not take lock into account when comparing deps, closes #1992