Fix cgi-handler buffered port to copy the buffer content

The u8vector passed to flush callback of <buffered-output-port>
can be overwritten any moment, so we need to copy it anyway.
(In future, we should allocate our own buffer so that we don't
need to create u8vector for every flush.)  Patch from @cryks.