[PATCH 6.17 316/563] tcp: fix __tcp_close() to only send RST when required