icount: remove unnecessary gen_io_end calls