[mle] mark former parent as valid after becoming router (#4582)
[mle] mark former parent as valid after becoming router (#4582)

Commit a8638d7 added logic to invalidate the parent upon a role
change. However, when upgrading from child to router, the existing
implementation updates the role before copying the parent into into
the router table. As a result, a router	may not	have any connectivity
with the rest of the partition until after additional MLE exchanges.

This commit marks the newly created router entry as valid so that the
router retains connectivity.
chshu/openthread,chshu/openthread,jwhui/openthread,openthread/openthread,srickardti/openthread,lanyuwen/openthread,chshu/openthread,srickardti/openthread,librasungirl/openthread,chshu/openthread,srickardti/openthread,chshu/openthread,openthread/openthread,lanyuwen/openthread,bukepo/openthread,bukepo/openthread,jwhui/openthread,librasungirl/openthread,abtink/openthread,lanyuwen/openthread,librasungirl/openthread,bukepo/openthread,abtink/openthread,bukepo/openthread,openthread/openthread,chshu/openthread,abtink/openthread,lanyuwen/openthread,abtink/openthread,openthread/openthread,srickardti/openthread,lanyuwen/openthread,jwhui/openthread,jwhui/openthread,lanyuwen/openthread,librasungirl/openthread