Add a Config * argument to ldisc_create(), and use it in place of the global