Disable device lock when pressing Gnex power button
Stock ICS and Jelly Bean already support this option.  Go to Settings > Security and uncheck the Power button instantly locks option.  Now, your phone will lock only after the desired period of inactivity.

Note, you may have to set the Automatically lock option to something other than "Instantly" in order to get the delayed lock.