The Kings signed Harrison Barnes to a three-year, $54 million extension, keeping him out of unrestricted free agency and securing one of the team’s most dependable performers.