Even though i don't own a moto x, i helped my friend root it. I think it was 4.4.4. Followed this guide from xda. There will be data loss while unlocking bootloader though, plus no OTA updates.
MIUI Update Highlights
New - Added 'Resend all' function in Outbox of Mail (05-28)
Changelog
Messaging
Optimization - Optimized UI of Notification messages. Support viewing messages by types by pulling down (06-04)
Optimization - Optimized UI of Notification messages. Support viewing...
Hi Guest we just wanted to alert you to a major change in the forum. We will no longer be allowing the posting of outgoing links. Please use the attachment feature to attach media to your posts.