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

Not meaning to be obnoxious here. "rolling forward of back" Should read " rolling forward or back".