avoid initiating syscalls before rb_io_wait_*