Restructure kptyprocess
Fix a blocking (up to the 30 seconds timeout) UTempter helper process when something messes with SIGCHLD.
Happens e.g. for the embedded terminal in dolphin when it is started from (sandboxed?) Steam, see https://bugs.kde.org/show_bug.cgi?id=426989