coccinelle: api: add kobj_to_dev.cocci script