fix send failed due to pcb->nrtx > TCP_MAXR (cherry picked from commit 2407a90eac516594c7d571abfa19196bffec592b)