Check lockfile