Revert back to using thread safe LruCache and copy over impl from Android.