Inline code from `Json_spew_json`.

Change logic to attempt deletion of the PID lockfile regardless
of the outcome of writing to the lockfile.
Leave stale lockfiles less often.

Change logic to attempt deletion of the PID lockfile regardless of the
outcome of writing to the lockfile.

This fixes #6.  See LUCY-265.