Update TAILQ_FOREACH_SAFE to match upstream
Do not attempt to stop TestHTTPD if using local HTTPD