There is an option with
vlock to lock all
pts/tty at a time which is,
$ vlock -a
vlock can lock only virtual consoles.
There is also an option named
TMOUT which will terminate the current sessions after given time.
So is there any tool to lock my all non-virtual terminal/pseudoterminal for terminal safety like