code: func (s *LocalState) lockInfoPath() string {
  	stateDir, stateName := filepath.Split(s.Path)
  	if stateName == "" {
  		panic("empty state file path")
  	}
  
  	if stateName[0] == '.' {
  		stateName = stateName[1:]
  	}
  
  	return filepath.Join(stateDir, fmt.Sprintf(".%s.lock.info", stateName))
  }
docs: // return the path for the lockInfo metadata.