these are not secure solutions if you use mutiple terminals anyone can change terminal with (Ctrl+)Alt+Fn
if you really want to lock your screen then use lockvc in a terminal (lokvc doesn't let you to change terminal) eg i use startx& if i need to lock my screen then Ctrl+Alt+F1 and lockvc nsz
