Lincolnshire hospital mistakes cost £40m in out-of-court settlements in two years