Motorola RAZR D3 power button doesn't (un)lock screen
This is not the ideal solution, but is still a working solution (bad solution is better than no solution):

Using the reference from TrendBlog.net, I installed Power Button to Volume Button which replaces the power button functionality (un/lock screen) with the volume buttons (up &amp; down).