STS-3636: fixed a concurrent modification problem while doing auto config location