added lock arround paramiko exec_command