Protect addFolder on adfs from thread