Introduce ioctl_errno save in SW_SOCK_CLOSE

* each time we tried to close the LiSA socket we would
save the errno after the ioctl call and restore it after
the socket close for future use; these steps were moved
in "SW_SOCK_CLOSE"

Signed-off-by: Claudiu Ghioc <claudiu.ghioc@gmail.com>