read_write_all: don't rely on write to pipe blocking in tests.