Fix locking for the restart command

The restart command was not removing the lock file upon exit, because
the very last call to util.unlock() was being skipped due to the _locked
attribute being set to False by the preceding unlock.  Fixed by removing
unneeded code.