This was broken out of TaskQueue and tweaked a bit to support lock persistence and bootstrapping (as separate from task persistence and bootstrapping). So it's part old part new.