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