EDIT: Well, I added few arguments to the script so you can lock the input too, you will need xinput and something to execute a script on XF86ScreenSaver keypress, like xbindkeys, which I use.