iPhone autolock feature doesn't work
I ran into a similar situation with an iPad running iOS 6. Powering it down, then back on again fixed it. Hard to say for sure if we had the same issue, but it's worth a try. Toggling the Auto-Lock setting might also be worth a try.