tlock
is a program for locking Linux console terminals when left idle.
To install, do ./install [--prefix=$HOME]
; the installation prefix defaults to /usr/local
See man ./tlock.1
for how to use.
It is recommended that you install vlock to do the actual locking.