Protect CachedResource in more places. In particular, a call to MemoryCache::remove() may delete the resource it is passed so it is important to protect the resource if we're going to use it after.
<rdar://80172764>
Pull request: https://github.com/WebKit/WebKit/pull/15922
Committed 266163@main (c7f1348de5c2): <https://commits.webkit.org/266163@main> Reviewed commits have been landed. Closing PR #15922 and removing active labels.