code: func (b *BaseKvdb) CheckLockTimeout(
  	key string,
  	startTime time.Time,
  	lockTimeout time.Duration,
  ) {
  	b.lock.Lock()
  	defer b.lock.Unlock()
  	if lockTimeout > 0 && time.Since(startTime) > lockTimeout {
  		b.lockTimedout(key)
  	}
  }
docs: // CheckLockTimeout checks lock timeout.