[WSD] fix a nested loop in the function ibsp_dereg_hca()