Hi, GB.
My apologies.
The devil lies in the detail, as it frequently does.
The First Edition of Beyond The Bar lists your ancestor Thorley Lester (i) as having died (but not as having retired) in 1858.
The Second Edition lists him as having retired in 1858, with his date of death unrecorded. Most clearly there is an error in my own efforts between the First and Second Edition (let alone anywhere else); and I can only repeat my apologies and my thanks for pointing it out. I can only confirm that it is a purely clerical error in any event; as the clearly excellent record of the Lester family had not previously been drawn to my attention, other than in this forum.
Both Editions (following Tebay's List of Pilots) show Thorley Lester (i) as having been first licensed in 1809 - which rules out 31 years of Mastership by 1815 by some distance. JS Rees shows a Thorley Lester as a Master pilot in 1824, holding 16 of the 64 shares in the pilot-cutter Friends Goodwill. This could only have been Thorley (i) if, as it appears, Thorley (ii) was born only in 1815 and was therefore only nine years of age in 1824.
Thomas Lester, however, is shown as having been licensed in 1784 and having died at sea in 1813 (after 29 years in service as a licensed pilot) - a record which is much nearer to 31 years of service combined with death in 1815. JS Rees shows Thomas Lester as having been a journeyman pilot in the cutter Fiends Goodwill in 1808.
The Friends Goodwill (the second of her name, again Rees tells us) was sloop-rigged, built in 1789 and sold out of the Service in 1832.
Hope this might help, if only a little.
Very best,
BY