t/read-to-pipe-async: synchronization fixes