Added StrictMode enable helper and a method to check if a given thread is running on the Main/UI thread.