mod - use ssh_command for lock file create.

Change-Id: Ic46cfe934e4b0087afc67ad62355649a64817b28