kernel/semaphore: fix have unified consistency about error code setting
kernel/semaphore: fix have unified consistency about error code setting

Tinyara uses get_errno and set_errno.
So I modified the logic consistently for the error code

Change-Id: If2864da0e5253e53ceb2d0fa7308d0168be2fce6
Signed-off-by: Jaesik <0c15f419be0b798d814c9433c3dc372b1d1c1c73@samsung.com>
Signed-off-by: Heuisam Kwag <2145cbb01e90577cd4983eccc3b7d9a9dfba6875@samsung.com>

JunhwanPark/TizenRT,JunhwanPark/TizenRT,JunhwanPark/TizenRT,JunhwanPark/TizenRT,JunhwanPark/TizenRT,JunhwanPark/TizenRT