code: public function getLockFactory(): Factory
      {
          if ($this->lockFactory !== null) {
              return $this->lockFactory;
          }
  
          if (!is_dir($this->lockPath)) {
              (new Filesystem())->mkdir($this->lockPath);
          }
          $store = new FlockStore($this->lockPath);
  
          return $this->setLockStore($store);
      }
docs: Get the lock factory in use.
  
  @return Factory