Fix ConcurrentModificationException in DiskBasedCache

Ensure trimming operations everywhere are sychronized.
https://rink.hockeyapp.net/manage/apps/12611/app_versions/255/crash_reasons/21171446
https://rink.hockeyapp.net/manage/apps/12611/app_versions/255/crash_reasons/21162925