Sri Lanka medium pacer Ashita Fernando picked up a 10-wicket haul to help his side clinch victory in the second Test over Bangladesh and seal the series.