WifiConfigManager: Fix ConcurrentModificationException on user switch

Note: This block of code was already triggered in multiple unit tests in
WifiConfigManagerTest (verified manually by adding logs). The
documentation for Hashmap does indicate that this is not always
guaranteed, so maybe the unit tests were not able to recreate the repro
scenario.

Bug: 150306087
Test: atest com.android.server.wifi
Change-Id: I1a5f4319e655f6b3b231348bee02d9a837f1fdd2
1 file changed
tree: 2183961fbb5ac33be260a74a0b0f0219d86b9e04
  1. apex/
  2. service/
  3. PREUPLOAD.cfg