Fix IPv6 check

IPv6 test should be skipped if both IPv6 address family
is not recognize and if we can't bind to ::1

Closes-Bug: #1263663
Change-Id: I7f70719ffb7cf51ba3100a82da68d1af9a41623f
Merge "Fix IPv6 check"