Merge changes from topic "thread-router" into main

* changes:
  [thread] refactor the settings module
  [thread] Support non-BR mode