IB/mlx4: convert to idr_alloc()