Added CheckAccess call to bypass wait when on the UI thread.
Merge pull request #1976 from totallyeviljake/ISSUE_1971

Added CheckAccess call to bypass wait when on the UI thread.