Fixes #8776 This introduces an error when multiple `lifecycle` blocks exist on a resource in the configuration.