Did Joseph Smith the stone seer write The Book of Mormon? Well the text does share an interest in locking down elusive treasure.
Yea, behold, the anger of the Lord is already kindled against you; behold, he hath cursed the land because of your iniquity. And behold, the time cometh that he curseth your riches, that they become slippery, that ye cannot hold them; and in the days of your poverty ye cannot retain them. And in the days of your poverty ye shall cry unto the Lord; and in vain shall ye cry, for your desolation is already come upon you, and your destruction is made sure; and then shall ye weep and howl in that day, saith the Lord of Hosts. And then shall ye lament, and say: O that I had repented, and had not killed the prophets, and stoned them, and cast them out. Yea, in that day ye shall say: O that we had remembered the Lord our God in the day that he gave us our riches, and then they would not have become slippery that we should lose them; for behold, our riches are gone from us. Behold, we lay a tool here and on the morrow it is gone; and behold, our swords are taken from us in the day we have sought them for battle. Yea, we have hid up our treasures and they have slipped away from us, because of the curse of the land. O that we had repented in the day that the word of the Lord came unto us; for behold the land is cursed, and all things are become slippery, and we cannot hold them. (Helaman 13:30-36, emphasis mine)
And later on there's also this:
And these Gadianton robbers, who were among the Lamanites, did infest the land, insomuch that the inhabitants thereof began to hide up their treasures in the earth; and they became slippery, because the Lord had cursed the land, that they could not hold them, nor retain them again. (Mormon 1:18, emphasis mine)
Does God really do that kind of tricky shit or are these examples of how Joseph couldn't help but include his typical excuse (slipperiness) for never finding real treasure when out scrying?