fixed race condition in the signalling between the rx and tx threads

Balraj: checking in on this change -- can I revert the move to Immediate acks and take the rest of the patch?