Reduce FactoryResetConfirmFragmentTest flakiness

Reducing flakiness by shifting spy from activity to fragment and adding
an additional PollingChecks to tests that use AsyncTask.

Bug: 191372081
Test: atest CarSettingsUnitTests
Change-Id: Ie52ccf428c04da055dcfd1793ff1404074e5e992
2 files changed