engines/libaio: better protect against a busy loop in getevents()