anv/trtt: fix the creation of sparse buffers of size 2^32 on 32bit systems
A fix for Sparse with TR-TT on 32bit systems, and a drive-by code cleanup.
All credits to @ibriano for reporting the problem, finding a solution at the same time as I did, testing it and providing a R-B over IRC.