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