Added pubsync to handle case where a_ostrm is actually a boost::iostreams<boost::iostreams::example::container_sink<std::string>>.