Critical net-baryon fluctuations in an expanding system