tcp: fix thread race when progressing sends

Always lock before trying to progress sends.

Reported by Teng Wang <tzw0019@tigermail.auburn.edu>