net/lwip: Fix bug of handling LWIP_IPV6
net/lwip: Fix bug of handling LWIP_IPV6

- Since LWIP_IPV6 is always defined to differenciate IP version, ifdef is not allowed.
- Fix a problem of missing #if LWIP_IPV6 before using IPADDR6_INIT macro.

jeongarmy/TizenRT,sunghan-chang/TizenRT,jsdosa/TizenRT,an4967/TizenRT,an4967/TizenRT,Samsung/TizenRT,jeongchanKim/TizenRT,Samsung/TizenRT,JeonginKim/TizenRT,Samsung/TizenRT,jsdosa/TizenRT,JeonginKim/TizenRT,JeonginKim/TizenRT,JeonginKim/TizenRT,jsdosa/TizenRT,jeongarmy/TizenRT,HONGCHAEHEE/TizenRT,Samsung/TizenRT,HONGCHAEHEE/TizenRT,HONGCHAEHEE/TizenRT,jeongchanKim/TizenRT,jeongarmy/TizenRT,an4967/TizenRT,Samsung/TizenRT,junmin-kim/TizenRT,sunghan-chang/TizenRT,jeongarmy/TizenRT,davidfather/TizenRT,pillip8282/TizenRT,jeongarmy/TizenRT,jeongarmy/TizenRT,chanijjani/TizenRT,davidfather/TizenRT,junmin-kim/TizenRT,sunghan-chang/TizenRT,JeonginKim/TizenRT,junmin-kim/TizenRT,pillip8282/TizenRT,jsdosa/TizenRT,jsdosa/TizenRT,jeongchanKim/TizenRT,jeongchanKim/TizenRT,jsdosa/TizenRT,pillip8282/TizenRT,junmin-kim/TizenRT,HONGCHAEHEE/TizenRT,junmin-kim/TizenRT,davidfather/TizenRT,jsdosa/TizenRT,sunghan-chang/TizenRT,davidfather/TizenRT,pillip8282/TizenRT,jeongchanKim/TizenRT,an4967/TizenRT,an4967/TizenRT,jeongchanKim/TizenRT,pillip8282/TizenRT,davidfather/TizenRT,davidfather/TizenRT,sunghan-chang/TizenRT,junmin-kim/TizenRT,HONGCHAEHEE/TizenRT,junmin-kim/TizenRT,chanijjani/TizenRT,jeongchanKim/TizenRT,sunghan-chang/TizenRT,HONGCHAEHEE/TizenRT,Samsung/TizenRT,chanijjani/TizenRT,davidfather/TizenRT,chanijjani/TizenRT,Samsung/TizenRT,jeongarmy/TizenRT,pillip8282/TizenRT,an4967/TizenRT,chanijjani/TizenRT,chanijjani/TizenRT,an4967/TizenRT,pillip8282/TizenRT,JeonginKim/TizenRT,chanijjani/TizenRT,sunghan-chang/TizenRT