Motorola may have changed its mind about making its devices hard to unlock by creating a tool to do it for you, but they've been slow to update it to include the latest and greatest models. Want to beat them to the punch? Just consult djrbliss over on XDA-Developers, who came up with a root exploit that will unlock all the newest Motorola smartphones, like the Motorola Atrix HD, Photon Q, and new Razrs.
It's simple. Just connect your device to your computer, download and extract the zip file containing the exploit, then double-click run.bat. From here, all you have to do is follow the instructions.
Check out djrbliss's post for more details. It's also a good idea to check Motorola's list of supported devices for their unlocking tool. If yours is on it, the process will be even easier, and not as risky.