While a lambda is still processing (archive unpacking etc), the lambda state should be set to "Pending" (currently "Active") and invocations to that lambda should fail (currently, it can end up in a inconsistent state in this case, like lambdas being executed without layers).

Lambda state should reflect the current internal state, and invocations should fail if not active.
propagation="rprivate",
            )
            result = Util.get_host_path_for_path_in_docker("/var/lib/localstack/some/test/file")
            get_volume.assert_called_once()
            
            assert result == r"C:\Users\localstack\volume\mount/some/test/file"
    def test_host_path_for_path_in_docker_linux(self):
        with mock.patch(
            "localstack.services.awslambda.lambda_executors.get_default_volume_dir_mount"
        ) as get_volume, mock.patch("localstack.config.is_in_docker", True):
            get_volume.return_value = VolumeInfo(
                type="bind",
                source="/home/some-user/.cache/localstack/volume",
                destination="/var/lib/localstack",
                mode="rw",
                rw=True,
                propagation="rprivate",
            )
            result = Util.get_host_path_for_path_in_docker("/var/lib/localstack/some/test/file")
            get_volume.assert_called_once()
            assert result == "/home/some-user/.cache/localstack/volume/some/test/file"
    def test_host_path_for_path_in_docker_linux_volume_dir(self):
        with mock.patch(
            "localstack.services.awslambda.lambda_executors.get_default_volume_dir_mount"
        ) as get_volume, mock.patch("localstack.config.is_in_docker", True):
            get_volume.return_value = VolumeInfo(
                type="bind",
                source="/home/some-user/.cache/localstack/volume",
                destination="/var/lib/localstack",
                mode="rw",