Ensure AddTask is called on our main thread.

- E.g. the sync adapter may create a new AddTask, but it does not run on
the main thread. However, AddTask is an AsyncTask which does require
access to it.