The collapse of two giant crypto lending businesses that also mined bitcoin yields a few interesting lessons.