Fix IdeRepaintManager.checkThreadViolations failure
(cherry picked from commit 4e71a14)
http://crucible.labs.intellij.net/cru/CR-IC-6584