Fix ActivityEmbeddingLifecycleTests with Shell transition enabled

Activity ON_DESTROY may not happen in order because the activity removal
may be delayed in ActivityRecord#completeFinishing() until the next
resumed becomes visible and IDLE.

Bug: 207070762
Test: atest CtsWindowManagerJetpackTestCases
Change-Id: I10c889f1a2839153c98e323d8fa86e694ca3f737
3 files changed