[IBAL] ib_dereg_svc check that the handle is from the right type