libqos: improve event_index test with timeout