code: func (c *LockCache) Locks() []Lock {
  	var locks []Lock
  	c.kv.Visit(func(key string, val interface{}) bool {
  		// Only report file->id entries not reverse
  		if !c.isIdKey(key) {
  			lock := val.(*Lock)
  			locks = append(locks, *lock)
  		}
  		return true // continue
  	})
  	return locks
  }
docs: // Get the list of cached locked files