Puts locks around the code which lists items form the cache instead of the whole ManageCacheSize method