Issue #23838: linecache now clears the cache and returns an empty result on
MemoryError.