With xscreensaver you could use glslideshow as the
screensaver module, turn off all gimmicks and ask it
to grab the desktop ... the only way to know it's locked
will be that the clock is "stuck" ... I don't know off other
ways to lock the box without screensaver-functionality.