s3: always call run_events() before and after sys_select()