[PATCH 6.1 088/440] tcp: add tcp_done_with_error() helper