use IO#wait instead of kgio_wait_readable