Fix race condition in ActivityThread.completeRemoveProvider()