WorkerCoordinatorMetrics is a private class but we don't ever use it after instantiating it. This PR change it to a private method with lambda expression.
### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) [ Full content available at: https://github.com/apache/kafka/pull/5708 ] This message was relayed via gitbox.apache.org for [email protected]
