code: func (c *Client) IsFileLockedByCurrentCommitter(path string) bool {
  	filter := map[string]string{"path": path}
  	locks, err := c.searchLocalLocks(filter, 1)
  	if err != nil {
  		tracerx.Printf("Error searching cached locks: %s\nForcing remote search", err)
  		locks, _ = c.searchRemoteLocks(filter, 1)
  	}
  	return len(locks) > 0
  }
docs: // IsFileLockedByCurrentCommitter returns whether a file is locked by the
  // current user, as cached locally