### Is there an existing issue for this?

- [X] I have searched the existing issues

### Current Behavior

Lambda refs get lost

### Expected Behavior

Lambda refs work in state machines

### How are you starting LocalStack?

With a docker-compose file

### Steps To Reproduce

#### How are you starting localstack (e.g., `bin/localstack` command, arguments, or `docker-compose.yml`)

    docker run localstack/localstack

#### Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)

    awslocal s3 mb s3://mybucket


### Environment

```markdown
- OS: 
- LocalStack:
```


### Anything else?

This is based on a conversation I had with @dominikschubert 
return _client("dynamodb")
@pytest.fixture(scope="class")
def apigateway_client() -> "APIGatewayClient":
    return _client("apigateway")
@pytest.fixture(scope="class")
def iam_client() -> "IAMClient":
    return _client("iam")
@pytest.fixture(scope="class")
def s3_client() -> "S3Client":
    return _client("s3")
@pytest.fixture(scope="class")
def sqs_client() -> "SQSClient":
    return _client("sqs")
@pytest.fixture(scope="class")
def sns_client() -> "SNSClient":
    return _client("sns")
@pytest.fixture(scope="class")
def cfn_client() -> "CloudFormationClient":
    return _client("cloudformation")
@pytest.fixture(scope="class")
def ssm_client() -> "SSMClient":
    return _client("ssm")
@pytest.fixture(scope="class")
def lambda_client() -> "LambdaClient":
    return _client("lambda")
@pytest.fixture(scope="class")
def kinesis_client() -> "KinesisClient":