Merge changes Ic1777192,Ifdae88ec,Ief57303f

* changes:
  Improve synchronization for "task" field in BaseCommand
  Use AtomicBoolean for "logged" in CommandFactoryProvider.
  Improve synchronization in sshd DispatchCommand.