socket_wrapper: fix crash bug in swrap_readv/writev