Ensure we call UIAlertView from the main UI thread. Fix bug #11522