Prevent deadlock for clearWaitingDialog

Post the dismiss work to prevent the deadlock between the global lock
and the ActivityManagerService.

Bug: 230077383
Test: atest CtsWindowManagerDeviceTestCases
Change-Id: Ie4bbec94d2ac9bd3aaa4f1af8c009c5d81f3ab00
1 file changed