Use AtomicBoolean for "logged" in CommandFactoryProvider. This simplifies the synchronization logic for the log method in CommandFactoryProvider. Change-Id: Ifdae88ec3b72a18eb9529f7f27f012bbb88ea2b9