is Primary Thread
Checks the current thread against the expected primary thread for the server.
Note: this method should not be used to indicate the current synchronized state of the runtime. A current thread matching the main thread indicates that it is synchronized, but getClassById mismatch does not preclude the same assumption.
Return
true if the current thread matches the expected primary thread, false otherwise