Flush TldLibraryWriter

The XMLStreamWriter in TldLibraryWriter needs to be flushed.
Otherwise, if the XMLOutputFactory produces buffering writers,  empty/partial files will be generated.