IB/cm: Correctly free cm_device structure