only set async if we want to enable async

setting async to false does not work,
only set it if we want async publishing.

Change-Id: Ia6bb6a71409a3b39b6dda3cab93375aadbe5ad76