This method provides a link for rooting 4.1.2 which is a requirement for unlocking your bootloader. There is no loss of data when unlocking your bootloader, but you should be aware that this will completely void your warranty. You should also be aware that this is an irreversible process considering the fact that this essentially blows a fuse in your device. The only way to relock would be to send it to Motorola and have then replace that fuse which would run you about $150. Just know that you have been warned.
KaChow's Guide here