I am having a related problem with my first LibreELEC installation... a Pi 4B with a UN7000 series Samsung TV connected through a Denon AV receiver.
Enabling Samsung's Anynet+ is required to turn on CEC for the television. There is also a TV configuration setting, which I have enabled for 'Power Off' over CEC.
LibreELEC navigation works well with the TV remote, so communication appears to work... with the exception that LibreELEC does not shut down as the TV is powered off.
This creates problems since there are multiple devices connected to the AV receiver. I use a Logitech remote that configures and controls the TV, AV receiver, and devices. Things are fine as long is everything is off to start with. If not, Anynet+ will attempt to find and connect any CEC enabled interfaces that are active (trying to reconfigure the TV and AV inputs) once the TV is turned on. That means nothing else works as long as the Pi 4B is on.
Manually shutting down LibreELEC does not resolve the problem, apparently the HDMI interface is still active. While I am not familiar with the protocol, I assume that 'power off system' would place the HDMI interface into a standby state where it would only respond to a CEC request to power on. It is in fact necessary to manually disconnect power from the Pi 4B to avoid this Anynet+ reconfiguration.
Am I missing some configuration?
I have ordered a Kodi remote with dongle for now. However, I have other devices attached to the TV and AV receiver that use CEC.