[minip][tcp] fix race introduced by dropping the socket's mutex across tcp_send

-There was a path where the tcp sender is queuing multiple packets in a row but
during the send it received a packet that moved the tx buffer out from underneath it.
[app][inetsrv] make sure the chargen generator buffers at a boundary of the sequence