ar71xx: backport restart fix from r43777 (fixes #17839)