fix deadlock with an unbuffered network