[meshcop] include logging.hpp for helper function 'LogError()' (#5562)
[meshcop] include logging.hpp for helper function 'LogError()' (#5562)

LogError() uses otLogWarnMeshCoP(), which was included by
thread/thread_netif.hpp -> meshcop/joiner.hpp -> common/logging.hpp.
thread_netif.hpp includes joiner.hpp only if OT_JOINER=ON, so the
build would fail if OT_JOINER=OFF.

This commit fixes the above.
chshu/openthread,abtink/openthread,openthread/openthread,bukepo/openthread,openthread/openthread,chshu/openthread,abtink/openthread,srickardti/openthread,openthread/openthread,chshu/openthread,abtink/openthread,chshu/openthread,abtink/openthread,chshu/openthread,chshu/openthread,openthread/openthread,jwhui/openthread,srickardti/openthread,jwhui/openthread,bukepo/openthread,jwhui/openthread,srickardti/openthread,bukepo/openthread,bukepo/openthread,jwhui/openthread,srickardti/openthread