Workaround race in ReplicationPublisher test