class_docstr: file lock to make safe concurrent access to directory
  works as context
class_docstr_tok: ["file","lock","to","make","safe","concurrent","access","to","directory","works","as","context"]
docstr: Args:
      relative_path (Path): path to resource directory relative to storage root
  
  Returns:
      Path: abs path to folder with lock file
code: def lock_folder_path(relative_path: Path) -> Path:
      """Args:
          relative_path (Path): path to resource directory relative to storage root
  
      Returns:
          Path: abs path to folder with lock file
      """
      config = Config()
      root_storage_path = Path(config.paths["root"])
      return config.paths["locks"] / relative_path.relative_to(
          root_storage_path
      )
  
imports: import os
  import io
  import shutil
  import tarfile
  import hashlib
  from pathlib import Path
  from abc import ABC, abstractmethod
  from typing import Union, Optional
  from dataclasses import dataclass
  from datetime import datetime
  import threading
  import psutil
  from checksumdir import dirhash
  from mindsdb.utilities.config import Config
  from mindsdb.utilities.context import context
  import mindsdb.utilities.profiler
  from mindsdb.utilities import log
label_desc: Use image node_id 1 for calling the FileLock obj's underlying member method code with example usage: obj.lock_folder_path(relative_path) and returns: unknown