[XNIO-213] Avoid publication problems relating to socket names
[XNIO-151 and others] Backport selector detection improvements from 3.1 branch to 3.0