Change lock file to a pid file.