AutoLock:
Program your mobile device to automatically lock after the phone has been idle for a while.

Download Here