x86: improve machdep.uprintf_signal
(cherry picked from commit ff32a055542f0bbe835205a261350d9c0b6c553a)