Skip sync invisible & lifecycle-unlreated window for an Activity.

Client can create extra window and set it's visibility to INVISIBLE or
GONE, for either case, the client won't redraw this window after
request sync, which can cause sync timeout.
To preventing from the timeout issue, skip sync that window during
prepareSync.

Bug: 285818330
Test: atest WindowOrganizerTests WindowStateTests
Test: create a window and set it's visibility to GONE, verify that
activity transition won't be blocked on waiting for this kind of window.

Change-Id: Ie8ccf1d9b8629a60943726cf3c2b8daad84fe08c
1 file changed