An extensive programme of repair and maintenance work to Lincoln Castle will begin this summer.