Auto Lock (CSDEVCTRL) is another auto locking program which utilizes the Windows Locking for partial locking (phone related keys are active) or complete locking (no keys are active).

Changes:

27/06 – v.6.15 – Added option to lock only if specific programs are running

http://forum.xda-developers.com/showthread.php?t=386451