Add 'get_nameinfo' for V1 plugin operations

getsockname/getnameinfo don't work on v1 plugins where the file
descriptor is opaque.

For windows, SO_UPDATE_CONNECT_CONTEXT is added for mingw

Change-Id: I148eaf6cb48f0fe7e6146d1e5e618b23b135d1e5
Reviewed-on: http://review.couchbase.org/27958
Tested-by: Mark Nunberg <mnunberg@haskalah.org>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>