Fix win32 reading semaphore count not working (broke all queues)