Fix active mode (fast-poll) management in CommissioningWindowManager. (#23298)
Fix active mode (fast-poll) management in CommissioningWindowManager. (#23298)

Without this fix we could end up in the following situation:

1. Open a commissioning window when operational.  Enter active mode in
   StartAdvertisement.
2. Establish a PASE session.  Leave active mode in StopAdvertisement.
3. Commissioning fails, fail-safe triggers.
4. We call StartAdvertisement, but do not enter active mode, because
   IsCommissioningWindowOpen() is true at this point.

The fix is to ensure that our RequestSEDActiveMode() calls happen
exacty when mListeningForPASE chages value, since that's the reason we
want to be messing with active mode to start with.
project-chip/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip,project-chip/connectedhomeip