Merge "[Thread] refactor setInfraLinkState" into main