fix restore() if Repos: section in the lockfile contains multiple entries