HTTP/2: return error on output on closed stream. Without this, an (incorrect) output on a closed stream could result in a socket leak.