tcp: improve lock management of conns

Improve handling of rejection of connects
Always take ep->lock and then tconn->lock when manipulating
tep->conns, tep->poll_conn, and tconn->status
tcp: do not hold ep->lock to progress conn sends

The caller has a ref, no need for ep lock