Add lock file for the `live` task.
Integrate lock file logic for the `live` task.