Fix ActivityLifecycleTopResumedStateTests testTopPositionSwitchOnTap This is a flaky test in some poor perfomence device. We should not clear the lifecycle log until wait the SideActivity become ON_STOP status. Bug:254814981 Test: run cts -m CtsWindowManagerDeviceTestCases -t android.server.wm.lifecycle.ActivityLifecycleTopResumedStateTests#testTopPositionSwitchOnTap Change-Id: Ide8369c567a98e142a8dbe4af1c53f81eecb6188