Fixed a deadlocking issue in DistributedStorage.