Ensureing a call is on the UI thread