For those with broken iPhone lock buttons, PhoneLock.app lets you lock your phone via an app.