zio-ldisc.c: add dev_id counter

Signed-off-by: Federico Vaga <federico.vaga@gmail.com>