Wait for windows that are in WM but not in AM.

It is possible that between request of states from AM and
WM activity will show up, which will result in window reported
in WM state and no corresponding activity in AM state.

Bug: 28786255
Change-Id: I196e03b69f548a8862299a78d53cb70f247b2e76
3 files changed