Add a more restrictive mode to the lock file.

This way, some other user can't come along and delete the lock file.

(Editing this through Github; I haven't run tests.)