every user can have one or more mi accounts and you can flash your phone by signing with this account. you can sign and unessign your phone with an account. the flashed rom will stay on the phone
I'm sure it'll be more clear when I start flashing.
Evertime you flash does a new Mi Account number get created.
If that's the case wouldn't that affect relocking, or is it serial number related.