Core: refactor: separate CIB-specific code from XML stream writer
The CIB-specific portion of lib/common/xml.c:write_xml_stream()
has been separated into a new internal function crm_xml_add_last_written(),
which is now called by cib/io.c:write_cib_contents().