Make tests pass in a FreeBSD jail

FreeBSD jails do not use 127.0.0.1 as a loopback address.