Merge "[Thread] fix ot-daemon state consistency issues" into main