use lockfile with pid