[PATCH 4/6] dinput/tests: Use semaphores to count and notify rawinput messages.