fio: Fix (unsigned) integer overflow issues