Did you follow my thread on rooting the RAZR M. There is a link to the guide. It tells you how to root and unroot. Idk how to help you on locking back your boot loader. I am rooted with a locked boot loader. I am scared when it comes to bootloader unlocking.