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

Did you intend to switch to Immediate acks in this changeset?