iPhone Passcode for Powering Off

In the current OS, this isn't possible. However, there is a jailbreak mod that will accomplish this functionality called PowerGuard.

enter image description here