We had shared the trick from which you can lock your computer via a shortcut
Create A Shortcut To Lock Your Computer
Well now we are going to share a trick from which you can lock your computer via context menu (See screenshot):-
Nice na?
All you need to do is just download the Registry files from the link below and install them and you will get the entry on your context menu.
There is a Uninstall file also so that if in future you wanna remove it just launch it and the rest will it do itself.