Protect ssh key edits with a mutex and lock file.
Merge pull request #1739 from rmillner/lock_ssh

Protect ssh key edits with a mutex and lock file.