With a locked bootlader, and the phone is functioning, you can only flash official firmware.
If the phone is non functional, you can try:
1) Use an older version of MiFlash to unlock it in Fastboot mode: Miflash 2.2.406.5: https://androidfilehost.com/?fid=889764386195901972
2) Test Point reset...