fixes #26 made lock recovery more efficient by caching and batching

Good point.  Using maximum size would make the code shorter, and weight is not really needed.

I can set a timeout.  I think the other cache I created has a timeout.  I can make both caches use the same constant for timeout.