Prevent ConcurrentModificationExceptions in log

Guard iteration within lock to prevent changes.

Test: manual
Change-Id: I7fed514aeb3f81b0af21bbf23d98fd7c23338409
3 files changed