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.
self._create_function(self.FUNCTION_NAME)
        
        payload = {
            "DestinationConfig": {"OnFailure": {"Destination": self.DL_QUEUE}},
            "MaximumEventAgeInSeconds": self.EVENT_AGE,
            "MaximumRetryAttempts": self.RETRY_ATTEMPTS,
        }
        response = self.LAMBDA_OBJ.put_function_event_invoke_config(payload)
        
        self.assertIsNotNone(response)
        
        response = self.LAMBDA_OBJ.get_function_event_invoke_config()
        
        self.assertEqual(self.LAMBDA_OBJ.id, response["FunctionArn"])
        self.assertEqual(self.RETRY_ATTEMPTS, response["MaximumRetryAttempts"])
        self.assertEqual(self.EVENT_AGE, response["MaximumEventAgeInSeconds"])
        self.assertEqual(self.DL_QUEUE, response["DestinationConfig"]["OnFailure"]["Destination"])
class TestLambdaUtils:
    def test_host_path_for_path_in_docker_windows(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=r"C:\Users\localstack\volume\mount",
                destination="/var/lib/localstack",
                mode="rw",
                rw=True,