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

Verified this fixes the test case outlined in the issue.