Mi Flash should work if you use the same ROM region, even if the phone is locked (as far as I remember).