avoid errno side-effects in kgio_wait_*able