[PATCH v2 1/1] dinput: Wait on event instead of thread on stop