## Problem
Currently, even if `LAMBDA_REMOTE_DOCKER=1`, we unzip the zip files in the directory they are in, which is usually /var/lib/localstack, which usually has a bind mount to the host.
On docker desktop, due to the use of grpc-FUSE (on macos), this can be very slow, about 200 times slower than on volumes / directly on the host. With experimental virtio filesystem enabled (also on macos), this can be reduced to about 30 times as slow, but still problematic.
This means a lambda may take a lot of time processing, for each additional layer some more. This especially affects nodejs lambdas with huge node_modules folders.

## Probable solution
At least if `LAMBDA_REMOTE_DOCKER=1`, we should leave the initial zip files on the bind mount (for persistence etc), but the working directories after unzipping should be located on non-bind mounts, to speed up the IO for unzipping.
locks: Dict[str, Union[threading.Semaphore, threading.Lock]]
    creation_lock: threading.Lock
    def __init__(self):
        self.locks = {}
        self.creation_lock = threading.Lock()
    def assure_lock_present(
        self, key: str, lock: Union[threading.Semaphore, threading.Lock]
    ) -> Union[threading.Semaphore, threading.Lock]:
        with self.creation_lock:
            return self.locks.setdefault(key, lock)
LAMBDA_ASYNC_LOCKS = LambdaAsyncLocks()
class LambdaExecutor:
    """Base class for Lambda executors. Subclasses must overwrite the _execute method"""
    def __init__(self):
        
        self.function_invoke_times = {}
    def _prepare_environment(self, lambda_function: LambdaFunction):
        
        result = lambda_function.envvars.copy()
        
        aws_stack.inject_test_credentials_into_env(result)
        
        aws_stack.inject_region_into_env(result, lambda_function.region())
        return result