tst_qquickpopup: stabilize closePolicy on Android and macOS
On Android 17 with the EGL surface lifecycle changes,
closePolicy can place an inside press outside the popup.
The cached parent position is stale after relayout. Map the
popup-local point through the current popup item instead.
On macOS 27.0.1 arm64, the native Cocoa Basic run reports
16 failures at QTest::qWaitForWindowActive(window) after
fixture teardown. Cocoa activation only makes the window
key. Raise each fixture to also activate the application.
The same run then passes all closePolicy rows.
Pick-to: 6.12
Change-Id: I344d4230abb1f299f128cbd59c0ce3296497f031
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>