Add a `register(BeanRegistry registry)` method to `BeanRegistry` to allow registration chaining. See gh-34557