x11/client: win8/server 2k12 fix for kbd sync

Keyboard indicator sync (caps lock/num lock/..) didn't work properly
on reconnect for windows 8 and windows 2012 server.

fixes #773
Merge pull request #1470 from bmiklautz/issue/773

x11/client: win8/server 2k12 fix for kbd sync