Update sysv init scripts to manage lockfile.

This should fix the hanging-at-restart.