Transit effects for non-linear index measurement in hot atomic vapors