Fix distributed deadlock between two sessions that are both sending messages to each other.
Does not hold the lock while sending data on the network.