Wigan Athletic defender Rob Kiernan has signed a new three-year contract with the Championship outfit.