An extension of Kakutani’s theorem on infinite product measures to the tensor product of semifinite *-algebras