Opener Keaton Jennings makes 78 not out as Lancashire go top of Division Two with a four-wicket win at Gloucestershire.