swiotlb: fix out-of-bounds TLB allocations with CONFIG_SWIOTLB_DYNAMIC