[PDI-12833] clear metrics when deregistering log channels to prevent memory leaks