[PATCH v3 1/4] mf/tests: Split wait_media_event helper into wait_next_media_event.