mlx4_core: Fix integer overflows so 8TBs of memory registration works