ibrcommon: Add method to check if sockets of a given family are supported
daemon: Only try to bind to ipv6 localhost if ipv6 is supported