swrap: slightly cleanup logic in swrap_close
swrap: slightly cleanup logic in swrap_close

This moves the libc_close() to one central point, thereby
grouping the fd-related operations together and the the
socket-info related operations after that.

Signed-off-by: Michael Adam <dcf2bf3ff8ea93047d51252815aac9756207ea09@samba.org>
Reviewed-by: Andreas Schneider <5be00ddc76278cf6077f5047ca3384a88460c671@samba.org>

anoopcs9/socket_wrapper,anoopcs9/socket_wrapper