engines/libaio: modify getevents and commit error handling