Fix flaky notifyPowerBoostNotifiesTouchEvent test

This patch fixes the flaky notifyPowerBoostNotifiesTouchEvent test by
forcing all operations to happen in a deterministic order, avoiding
races.

Bug: 332875603
Test: atest libsurfaceflinger_unittest:DisplayTransactionTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:0fd347a02ea101c3557083ccb935342e42bc977c)
Merged-In: I882c8cce57f071ec0c4c4e59f1b00dcca090c650
Change-Id: I882c8cce57f071ec0c4c4e59f1b00dcca090c650
2 files changed