Transients in all-optical bistability using transverse optical pumping: Observation of critical slowing down