lwip: sys_arch_sem_wait: change timeout value if it's smaller than MSEC_PER_TICK
lwip: sys_arch_sem_wait: change timeout value if it's smaller than MSEC_PER_TICK

MSEC_PER_TICK is minimum value that can be handled by OS. So if timeout is
smaller than MSEC_PER_TICK, sem_tickwait() returns EAGAIN and this cause
busy loop in sys_arch_sem_wait.
This patch prevent situation sys_arch_sem_wait is called with timeout
smaller than MSEC_PER_TICK.

Change-Id: Ife3b18eeab80d57ce4c4ffc01d12645d020204a2
Signed-off-by: EunBong Song <1a7e7e98e070490e67aa35ab67fbf9fdda8f48ac@samsung.com>

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