IB/core: Avoid unsigned int overflow in sg_alloc_table