Nottinghamshire beat Lancashire on their return to Division One following an incredible morning session at Old Trafford.