Merge "[Thread] define flag thread_user_restriction_enabled" into main