- Backup emunand, backup its folder in sdmc:/Nintendo 3DS/ (or simply cut/paste it elsewhere on the card, faster.)
- In system settings on emunand, do a system format which will unlink the NNID
- In newly formatted emunand, go to NNID settings and link your NNID
- Restore emunand backup, and put...