Ronnie O'Sullivan made a stunning plant on his way to taking a lead over Luca Brecel heading into the evening session of the Shanghai Masters final.