io: add io_fd_block() helper.