Perform keyboard switching on main thread.

Nothing except https://developer.apple.com/library/mac/technotes/tn2125/_index.html specifies that HIToolbox can't be run on the main thread, but switching keyboards seems like something that should.
Merge pull request #1865 from quicksilver/moreKeyboardChanges

Perform keyboard switching on main thread.