ReceiverThread deadlock avoidance