Thanks for the help. xlock works perfectly manually. It still doesn't work from the Gnome screen. The permissions, path and parameters are fine.
I thought carefully about which forum to target before I submitted. Since, I suspected that I had made an error in lokkit, I decided to first pick Security.