Add lockfile to daemon