Reland "MemoryCache: make sure that Resources are evicted only when they can be deleted (https://codereview.chromium.org/179943002/)"

The original patch was reverted due to the browsertest
MultiProfileFileManagerBrowserTest.BasicDrive failing on ChromeOS.

BUG=290193

Review URL: https://codereview.chromium.org/219343004

git-svn-id: svn://svn.chromium.org/blink/trunk@172497 bbb929c8-8fbe-4397-9dbb-9b2b20218538