Gain control through divisive inhibition prevents abrupt transition to chaos in a neural mass model.