Nathan Lyon’s five-wicket haul keeps Pakistan A to 247/6