Copy collections to avoid concurrent crash

Test: TaskSnapshotPersisterTest:
Change-Id: If3ac8b565a3f92600374c9330e9927a50c6f871a
Fixes: 110074872
1 file changed