[PATCH v4 5/7] dinput/tests: Use semaphores to count and notify rawinput messages.