Function Chunk-Output-Loop
(
chunk-output-loop < mailbox > < ordered > < output-chunk > )
Abstract loop for writing chunks of alignments. Each chunk has a sequence number prepended to it.
If ordered is true, ensure that chunks are written in the order of the sequence numbers.
Otherwise ignore the sequence numbers.