Catch uncaught OSError in hash_cache stuffs

This is usually a race condition between multiple master worker processes