Handle errors while unpickling.

The metadata cache for s3 can get corrupted. If unpickling raises such
an error we should just refetch the data from s3.
Merge pull request #18539 from wt/fix_s3fs_2014.7_exception

Handle errors while unpickling.