Add locking around reads of td->io_blocks and io_byes.