Added locking on DTH operations