cmake: extensions: Remove macro zephyr_library_ifdef.
cmake: extensions: Remove macro zephyr_library_ifdef.

This cmake macro was changing the control flow of the cmake files.
It is not advisable to modify the callee control flow from inside
a cmake macro.
Hence removing all instances of this macro from the build system.

Fixes: GH-7565

Signed-off-by: Adithya Baglody <06b44f6fa9a97a2b955c2d2cd070279967447860@intel.com>

Vudentz/zephyr,nashif/zephyr,Vudentz/zephyr,punitvara/zephyr,Vudentz/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,kraj/zephyr,galak/zephyr,mbolivar/zephyr,mbolivar/zephyr,GiulianoFranchetto/zephyr,nashif/zephyr,explora26/zephyr,Vudentz/zephyr,punitvara/zephyr,punitvara/zephyr,punitvara/zephyr,zephyriot/zephyr,explora26/zephyr,ldts/zephyr,ldts/zephyr,zephyriot/zephyr,zephyrproject-rtos/zephyr,kraj/zephyr,GiulianoFranchetto/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,mbolivar/zephyr,Vudentz/zephyr,ldts/zephyr,finikorg/zephyr,kraj/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,finikorg/zephyr,ldts/zephyr,kraj/zephyr,ldts/zephyr,GiulianoFranchetto/zephyr,galak/zephyr,zephyriot/zephyr,explora26/zephyr,zephyriot/zephyr,finikorg/zephyr,finikorg/zephyr,galak/zephyr,mbolivar/zephyr,nashif/zephyr,zephyriot/zephyr,kraj/zephyr,punitvara/zephyr,mbolivar/zephyr,zephyrproject-rtos/zephyr,explora26/zephyr,nashif/zephyr,nashif/zephyr