"Simply click 'Emergency Call' on the password screen and adjust the volume to your heart's content. Then with one click of the sleep button and the phone is turned off again."
Tested this and it works perfectly. Great time saver.
Quickly changing volume on a password protected iPhone via Mac OS X Hints