Kinetics of nucleation in near-critical fluids