A scheme to protect 48,000 homes in Lincolnshire marks the end of a six-year period of government investment in flood and coastal defences.