A global stability criterion in nonautonomous delay differential equations