Fix #2866 - High client CPU usage and laggy mouse after server was stopped for a few days

I've encountered Issue #2866 in 1.6.1, so patch from tracker is still actual.

Detailed steps and investigation is in the issue: https://github.com/synergy/synergy/issues/2866#issuecomment-58849356