[PATCH 1/4] mmdevapi/tests: Avoid race condition in capture test