Clear leader data when mode goes to detached. (#1809)
Clear leader data when mode goes to detached. (#1809)

The effect of not clearing leader data in detached state is, when the
device attaches back, network data is never requested when leader data
is handled.
bukepo/openthread,gandreello/openthread,fbsder/openthread,JakubBrachTieto/openthread,mszczodrak/openthread,xiaom-GitHub/openthread,gandreello/openthread,abtink/openthread,aeliot/openthread,mszczodrak/openthread,lanyuwen/openthread,turon/openthread,erja-gp/openthread,xiaom-GitHub/openthread,LeZhang2016/openthread,bukepo/openthread,lanyuwen/openthread,JakubBrachTieto/openthread,gandreello/openthread,fbsder/openthread,fbsder/openthread,abtink/openthread,mszczodrak/openthread,xiaom-GitHub/openthread,xiaom-GitHub/openthread,vaas-krish/openthread,mszczodrak/openthread,srickardti/openthread,lanyuwen/openthread,librasungirl/openthread,pvanhorn/openthread,chshu/openthread,georgecpr/openthread,bukepo/openthread,chshu/openthread,turon/openthread,LeZhang2016/openthread,fbsder/openthread,JakubBrachTieto/openthread,abtink/openthread,vaas-krish/openthread,jwhui/openthread,jwhui/openthread,aeliot/openthread,LeZhang2016/openthread,jwhui/openthread,aeliot/openthread,chshu/openthread,pvanhorn/openthread,vaas-krish/openthread,mszczodrak/openthread,srickardti/openthread,fbsder/openthread,turon/openthread,lanyuwen/openthread,georgecpr/openthread,gandreello/openthread,fbsder/openthread,chshu/openthread,pvanhorn/openthread,openthread/openthread,aeliot/openthread,erja-gp/openthread,gandreello/openthread,vaas-krish/openthread,aeliot/openthread,erja-gp/openthread,georgecpr/openthread,xiaom-GitHub/openthread,JakubBrachTieto/openthread,openthread/openthread,srickardti/openthread,chshu/openthread,librasungirl/openthread,pvanhorn/openthread,turon/openthread,chshu/openthread,abtink/openthread,jwhui/openthread,librasungirl/openthread,georgecpr/openthread,LeZhang2016/openthread,JakubBrachTieto/openthread,vaas-krish/openthread,lanyuwen/openthread,aeliot/openthread,georgecpr/openthread,pvanhorn/openthread,JakubBrachTieto/openthread,openthread/openthread,erja-gp/openthread,gandreello/openthread,srickardti/openthread,LeZhang2016/openthread,erja-gp/openthread,xiaom-GitHub/openthread,librasungirl/openthread,bukepo/openthread,LeZhang2016/openthread,georgecpr/openthread,erja-gp/openthread,mszczodrak/openthread,vaas-krish/openthread,pvanhorn/openthread,lanyuwen/openthread,openthread/openthread