Will Smith's patient 153 put Durham on course for their second win of the season after dominating the third day against Nottinghamshire at Trent Bridge.