IB/core: fix error unwind in sysfs hw counters code