kern_thr.c/kern_sig.c: remove sys/cdefs.h
(cherry picked from commit 2effad53b4676dcfe4da892cd72a9a235a9539d1)