fix #1117 make lockfile more diagnosable