There are a large variety of alcohol-soluble resins that could have been included in 'spirit varnish' of the era. To my knowledge, there is nothing that indicates specific use of lac products relative to gunstocking. Of course there are period texts dating back to the Renaissance that deal with varnish formulations for a variety of woodworking trades and in particular stringed instrument making, but was there crossover with gunstocking? Firearms meant to be used outside in a wide range of climate changes are a very different animal than say a violin, so we unfortunately have no way of knowing specifically what was used or referenced when terms like "varnish" or "spirit varnish" are used, other than that obviously a spirit varnish is referencing alcohol solubility.