Lionel Messi came alive for Paris Saint-Germain, scoring a European-record 496th goal to grab a point and seal the Ligue 1 title.