Fix WindowInfosListenerTest

Fixes a race condition where the WindowInfo vector checked may not
contain the updated window on the first pass.

Bug: 269522974
Test: atest WindowInfosListenerTest
Change-Id: I013955dd1c89858190b519c2980909e2e7e45a24
(cherry picked from commit 4c766ae50ce641672158c19eda4613a5e64baf47)
5 files changed