Make sure the buffer is freed when a content length is set when using sync servlet output streams