[netdata] allow `Publisher` to be build with service only (#7132)
[netdata] allow `Publisher` to be build with service only (#7132)

This commit adds missing `#if` check in `network_data_publisher.cpp`
to ensure it can be built when `CONFIG_BORDER_ROUTER_ENABLE` is
disabled (i.e., with `CONFIG_TMF_NETDATA_SERVICE_ENABLE` only).
openthread/openthread,jwhui/openthread,openthread/openthread,openthread/openthread,abtink/openthread,jwhui/openthread,jwhui/openthread,srickardti/openthread,srickardti/openthread,jwhui/openthread,srickardti/openthread,abtink/openthread,openthread/openthread,srickardti/openthread,abtink/openthread,abtink/openthread