Try using Flip Unlock. I've had a problem with my power button on my previous Nexus phone as well, and I tried different apps that use the volume button or the phone orientation, but this is the only app that works smoothly every time - you flip the phone down and up and it unlocks.
It doesn't...