Make sure lockfile exists before trying to read it; update repos