Fix a couple of locks in the DiskCache