IB/ipath: Lock and count allocated CQs properly