Fix another race condition for provider ui launching.

Make sure that once a provider ui is launched, we don't relaunch it
until that pending ui has finished.

Test: verified locally
Fix: 261676445
Change-Id: I2424f919bdabf0facf2d727f439235e7586953cf
4 files changed