connection: Protect connfailed() against overwriting a different connection