unix, windows: add IPv6 support to uv_usp_set_membership

Reworked from initial version by @snoj

/cc @indutny