Ok I was also stuck at 50% like everyone else, what I did was, I flashed the "Latest China Developer" ROM
YOU WILL NEED
1-China developer ROM (choose Redmi 4 Prime Latest China Developer Version Fastboot File Download)
http://en.miui.com/a-234.html
2-MiFlash
http://xiaomitips.com/download-in-progress/?dlm-dp-dl=1474
Just follow the steps on the website, I'm gonna put them here anyway:
1)Install MiFlash on your PC
2)Fastboot your phone Turn off the device. Then Press the Volume DOWN key and the Power button at the same time (bunny with a hat) and after that, connect the device to the PC via a micro USB cable
3)Open the file you downloaded (it should be a .tgz) with winrar/winzip/7zip
4)Extract the file inside it (it should be a .tar) to any folder
5)Extract the folder inside the .tar it should be something like "markw_images_7.3.30_20170330.0000.00_6.0_cn"
6)It should look like this
http://i.imgur.com/N6PYADk.png
7)Now run MiFlash has an admin and paste the directory of the markw_images_7.3.30_20170330.0000.00_6.0_cn folder like so:
http://en.miui.com/static/article/innerimg/tongyong/tongyong-3-3.jpg
8)Hit refresh, select flash_all.bat at the bottom and click flash
http://en.miui.com/static/article/innerimg/tongyong/tongyong3-4.jpg
9)Once flash is finished a chinese button shall appear, click it and reboot your device (It's first boot so it should take alot of time, mine took 10min)
10)Just try to unlock bootloader now
TL;DR: Flash china dev rom
http://en.miui.com/a-234.html