Middlesbrough announced midfielder Adam Clayton has signed a new contract to stay at the club through the 2021 season.