I don't know a solution,and maybe there's a simple one , but if not, one thing you can do: post this problem , including pictures - some some popular android place like reddit.com/r/android - to make noise about xiaomi blocking users even after giving unlock code.
If it's solvable , someone will see and help . If not , the bad publicity to xioami may force them to make it solvable.