do not release cm_id if creating it failed

Change-Id: Ibc3878288193460566477720e1a5046ba87b94da
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>