### 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
```
target_uri,
            path=lambda_resource,
            stage_name=TEST_STAGE_NAME,
        )
        api_id = result["id"]
        url = path_based_url(api_id=api_id, stage_name=TEST_STAGE_NAME, path=lambda_path)
        result = safe_requests.post(
            url, data=b"{}", headers={"User-Agent": "python-requests/testing"}
        )
        content = json.loads(result.content)
        assert lambda_path == content["path"]
        assert lambda_resource == content["resource"]
        assert lambda_request_context_path == content["requestContext"]["path"]
        assert lambda_request_context_resource_path == content["requestContext"]["resourcePath"]
    def test_malformed_response_apigw_invocation(self, create_lambda_function, lambda_client):
        lambda_name = f"test_lambda_{short_uid()}"
        lambda_resource = "/api/v1/{proxy+}"
        lambda_path = "/api/v1/hello/world"
        create_lambda_function(
            func_name=lambda_name,
            zip_file=testutil.create_zip_file(TEST_LAMBDA_NODEJS_APIGW_502, get_content=True),
            runtime=LAMBDA_RUNTIME_NODEJS14X,
            handler="apigw_502.handler",
        )
        lambda_uri = aws_stack.lambda_function_arn(lambda_name)
        target_uri = f"arn:aws:apigateway:{aws_stack.get_region()}:lambda:path/2015-03-31/functions/{lambda_uri}/invocations"
        result = testutil.connect_api_gateway_to_http_with_lambda_proxy(
            "test_gateway",
            target_uri,
            path=lambda_resource,