copying complete PSW after signal handler. This fixes a psw corruption bug reported by Jens de Smit <jst260@few.vu.nl>.
Added field in kinfo that can count re-lock()ing, controlled by ENABLE_K_LOCKCHECK in config.h.