nbd: use an idr to keep track of nbd devices