JRE-624 CThreading.isAppKit() fails to detect main app thread if it was renamed

Added app main thread fix

(cherry picked from commit 5dfb30a)
3 files changed