Fix data races on c.outch & c.readch