### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

If the Lambda returns an error, the message is put into DLQ straightaway after first try **although** the configurations says "try 3 times".

### Expected Behavior

If the Lambda returns an error, the message should be put into DLQ after what `RedrivePolicy.maxReceiveCount` says which is 3 in this case. For instance, try processing the message 3 times, if still no success, put it into DLQ.

### How are you starting LocalStack?

With a docker-compose file

### Steps To Reproduce

```yaml
version: "3.8"

services:
  localstack:
    image: "localstack/localstack"
    container_name: "localstack"
    ports:
      - "4566-4599:4566-4599"
    environment:
      - DEBUG=1
      - DEFAULT_REGION=eu-west-1
      - SERVICES=lambda,events,sqs
      - DATA_DIR=/tmp/localstack/data
      - DOCKER_HOST=unix:///var/run/docker.sock
      - LAMBDA_EXECUTOR=docker
    volumes:
      - "./tmp/localstack:/tmp/localstack"
      - "/var/run/docker.sock:/var/run/docker.sock"
```

### Environment

```markdown
- OS: MacOS BigSur
- LocalStack: `1dc090777b0c`
```


### Anything else?

This will try **only once** and put the message into DLQ after failure **although** the retry policy instructs for **3 retries**. This is the issue.

```bash
aws --profile localstack --endpoint-url http://localhost:4566 lambda create-function \
    --function-name api-lambda \
    --handler lambda/main \
    --runtime go1.x \
    --role api-role \
    --zip-file fileb://lambda.zip
    
aws --profile localstack --endpoint-url http://localhost:4566 sqs create-queue \
    --queue-name api-dead-letter-queue

aws --profile localstack --endpoint-url http://localhost:4566 sqs create-queue \
    --queue-name api-queue \
    --attributes '{"RedrivePolicy":"{\"deadLetterTargetArn\":\"arn:aws:sqs:eu-west-1:000000000000:api-dead-letter-queue\",\"maxReceiveCount\":\"3\"}"}'

aws --profile localstack --endpoint-url http://localhost:4566 lambda create-event-source-mapping \
    --function-name api-lambda \
    --event-source-arn arn:aws:sqs:eu-west-1:000000000000:api-queue
```

Use this command to test.

```bash
aws --profile localstack --endpoint-url http://localhost:4566 sqs send-message \
    --queue-url http://localhost:4566/000000000000/api-queue \
    --message-body '{"hello":"world"}'
```

----

FYI - This will try **indefinitely** (_30 sec in between_) until it succeeds because there is **no** retry policy set which is perfectly normal and expected behaviour.

```bash
aws --profile localstack --endpoint-url http://localhost:4566 lambda create-function \
    --function-name api-lambda \
    --handler lambda/main \
    --runtime go1.x \
    --role api-role \
    --zip-file fileb://lambda.zip
    
aws --profile localstack --endpoint-url http://localhost:4566 sqs create-queue \
    --queue-name api-dead-letter-queue

aws --profile localstack --endpoint-url http://localhost:4566 sqs create-queue \
    --queue-name api-queue

aws --profile localstack --endpoint-url http://localhost:4566 lambda create-event-source-mapping \
    --function-name api-lambda \
    --event-source-arn arn:aws:sqs:eu-west-1:000000000000:api-queue
```
lambda_function: LambdaFunction,
        env_vars: Dict,
        lambda_cwd: str,
        docker_flags: str = None,
    ):
        docker_image = Util.docker_image_for_lambda(lambda_function)
        container_config = LambdaContainerConfiguration(image_name=docker_image)
        container_config.name = self.get_container_name(lambda_function.arn())
        
        env_vars.pop("AWS_LAMBDA_EVENT_BODY", None)
        container_config.env_vars = env_vars
        container_config.network = get_container_network_for_lambda()
        container_config.additional_flags = docker_flags
        container_config.dns = config.LAMBDA_DOCKER_DNS
        if lambda_cwd:
            if config.LAMBDA_REMOTE_DOCKER:
                container_config.required_files.append((f"{lambda_cwd}/.", DOCKER_TASK_FOLDER))
            else:
                lambda_cwd_on_host = Util.get_host_path_for_path_in_docker(lambda_cwd)
                
                if ":" in lambda_cwd and "\\" in lambda_cwd:
                    lambda_cwd_on_host = Util.format_windows_path(lambda_cwd_on_host)
                container_config.required_files.append((lambda_cwd_on_host, DOCKER_TASK_FOLDER))
        container_config.entrypoint = "/bin/bash"
        container_config.interactive = True
        if config.LAMBDA_STAY_OPEN_MODE:
            container_config.env_vars["DOCKER_LAMBDA_STAY_OPEN"] = "1"
            
            container_config.env_vars.pop("DOCKER_LAMBDA_USE_STDIN", None)
            container_config.entrypoint = None