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

All windows users please test this one!