unified: add _sem_give_non_preemptible()
unified: add _sem_give_non_preemptible()

Needed by the kernel event logger when it records a context switch.

The kernel event logger releases a semaphore when a new event is
available in the log so that a thread can consume the event. However,
giving that semaphore cannot add a context switch event itself in the
log or the logger would be caught in an infinite loop.

Change-Id: I571a4aa0d302775e09cdc2d654a6b61f8b2e42c7
Signed-off-by: Benjamin Walsh <578db18f23ec223e50c404886c947386478a464e@windriver.com>

ldts/zephyr,pklazy/zephyr,mbolivar/zephyr,runchip/zephyr-cc3220,mbolivar/zephyr,bigdinotech/zephyr,runchip/zephyr-cc3220,zephyrproject-rtos/zephyr,explora26/zephyr,aceofall/zephyr-iotos,GiulianoFranchetto/zephyr,finikorg/zephyr,runchip/zephyr-cc3220,galak/zephyr,ldts/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,erwango/zephyr,runchip/zephyr-cc3200,sharronliu/zephyr,holtmann/zephyr,bigdinotech/zephyr,pklazy/zephyr,Vudentz/zephyr,bboozzoo/zephyr,runchip/zephyr-cc3200,runchip/zephyr-cc3220,GiulianoFranchetto/zephyr,nashif/zephyr,runchip/zephyr-cc3200,tidyjiang8/zephyr-doc,nashif/zephyr,explora26/zephyr,zephyriot/zephyr,zephyriot/zephyr,pklazy/zephyr,rsalveti/zephyr,mbolivar/zephyr,fbsder/zephyr,bboozzoo/zephyr,sharronliu/zephyr,galak/zephyr,ldts/zephyr,tidyjiang8/zephyr-doc,zephyrproject-rtos/zephyr,finikorg/zephyr,fractalclone/zephyr-riscv,fbsder/zephyr,tidyjiang8/zephyr-doc,mbolivar/zephyr,pklazy/zephyr,sharronliu/zephyr,GiulianoFranchetto/zephyr,erwango/zephyr,bboozzoo/zephyr,fractalclone/zephyr-riscv,holtmann/zephyr,runchip/zephyr-cc3220,rsalveti/zephyr,explora26/zephyr,sharronliu/zephyr,punitvara/zephyr,erwango/zephyr,bigdinotech/zephyr,kraj/zephyr,rsalveti/zephyr,punitvara/zephyr,galak/zephyr,bboozzoo/zephyr,galak/zephyr,aceofall/zephyr-iotos,fractalclone/zephyr-riscv,Vudentz/zephyr,runchip/zephyr-cc3200,kraj/zephyr,mbolivar/zephyr,erwango/zephyr,rsalveti/zephyr,holtmann/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,holtmann/zephyr,aceofall/zephyr-iotos,finikorg/zephyr,kraj/zephyr,fractalclone/zephyr-riscv,rsalveti/zephyr,pklazy/zephyr,zephyriot/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,fbsder/zephyr,punitvara/zephyr,ldts/zephyr,Vudentz/zephyr,nashif/zephyr,punitvara/zephyr,ldts/zephyr,runchip/zephyr-cc3200,aceofall/zephyr-iotos,fbsder/zephyr,punitvara/zephyr,tidyjiang8/zephyr-doc,fbsder/zephyr,finikorg/zephyr,finikorg/zephyr,explora26/zephyr,nashif/zephyr,erwango/zephyr,explora26/zephyr,bigdinotech/zephyr,tidyjiang8/zephyr-doc,zephyrproject-rtos/zephyr,zephyriot/zephyr,bigdinotech/zephyr,kraj/zephyr,GiulianoFranchetto/zephyr,fractalclone/zephyr-riscv,aceofall/zephyr-iotos,holtmann/zephyr,galak/zephyr,sharronliu/zephyr,zephyriot/zephyr,kraj/zephyr,Vudentz/zephyr,bboozzoo/zephyr