Testing done:
% gdb --pid <pid of kscreenlocker with --testing>
Result
successfully attached
# gdb --pid <pid of kscreenlocker>
Result
successfully attached
% gdb --pid <pid of kscreenlocker>
Result
Attaching to process <pid of kscreenlocker>
ptrace: Operation not permitted.