Fix ConcurrentModificationException

The code that keeps track of registered BroadcastReceiver in tests was
being accesses by multiple threads. Guard against that.

Bug: 160433244
Test: SystemUITests
Change-Id: Ia89e638919d65955ae2182639fd74bcbab771fcc
1 file changed