Unfortunately the 1841 doesn't give place of birth - only whether or not the person was born in or out of the county in which they were residing. In this case Thomas is shown as born outside of Lincolnshire.
He is entered as Thomas Goodley, but given that he has an 18 year old son called Charles and in the 1861 he has a 38 year old son called Charles I think it has to be the right person.
HO 107/ 623/ Book 1/ Folio 8/ Page 8
Tallington
Thomas Goodley, 50, lock keeper, N
Elenor do, 50, N
Charles do, 18, Y
George do, 16, Y
Charlotte do, 3, Y
Note that in this census ages for adults were usually rounded down to the nearest 5 years.
Jennifer