HPCC-11389 Ignore loopback interfaces when selecting the interface to use

Use the IFF_LOOPBACK flag as well as detecting loopback ip.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>