lockfile: improve error message when lockfile exists