MINOR: connection: add cs_close() to close a conn_stream

This basically calls cs_shutw() followed by cs_shutr(). Both of them
are called in the most conservative mode so that any previous call is
still respected. The CS flags are cleared so that it can be reused
(this is important for connection retries when conn and CS are reused
without being reallocated).
diff --git a/include/proto/connection.h b/include/proto/connection.h
index 1ce0b05..cae5dc3 100644
--- a/include/proto/connection.h
+++ b/include/proto/connection.h
@@ -559,6 +559,14 @@
 	cs->flags |= (mode == CS_SHW_NORMAL) ? CS_FL_SHWN : CS_FL_SHWS;
 }
 
+/* completely close a conn_stream (but do not detach it) */
+static inline void cs_close(struct conn_stream *cs)
+{
+	cs_shutw(cs, CS_SHW_SILENT);
+	cs_shutr(cs, CS_SHR_RESET);
+	cs->flags = CS_FL_NONE;
+}
+
 /* detect sock->data read0 transition */
 static inline int conn_xprt_read0_pending(struct connection *c)
 {