swrap: Fix use-after-free
swrap: Fix use-after-free

This was introduced by commit 9ce583b6cd6f55d473e5b54794fb06450997ebc8

Signed-off-by: Anoop C S <52add29bc15c0f3832a373982b132796d33ff6c3@redhat.com>
Reviewed-by: Michael Adam <dcf2bf3ff8ea93047d51252815aac9756207ea09@samba.org>
Reviewed-by: Andreas Schneider <5be00ddc76278cf6077f5047ca3384a88460c671@samba.org>

anoopcs9/socket_wrapper,anoopcs9/socket_wrapper