FIX: nothing can be written to the stream after it
was closed. But the content of the stream written
before it was closed can be read.
Test if we can Flush the stream more than once.
Added some concurrent producer consumer tests.