Prevent possible deadlocks in Amazon S3 store