Do progress bar update in an AsyncTask

Part of FB 132314: Allow disable of progress bar.

No changes to the calculation, just moving it into a task.
Directly modifying the view from not-the-main-thread can cause problems. We can move this to either the result deliver element or request that action be exected on the UiThread