Store thread return value in the struct to avoid void*-to-uint casting