code: func (d *InstanceDiff) SetTainted(b bool) {
  	d.mu.Lock()
  	defer d.mu.Unlock()
  
  	d.DestroyTainted = b
  }
docs: // These methods are properly locked, for use outside other InstanceDiff
  // methods but everywhere else within the terraform package.
  // TODO refactor the locking scheme