OptionalonOptionalpollHow often a waiting caller tries again (default LOCK_POLL_MS).
OptionalsignalStop waiting: the CorpusLockedError is thrown then.
OptionalsleepInjectable for tests; the default sleeps with a timer that signal cuts short.
OptionalwaitWhile another run holds the lock, wait for it instead of throwing
CorpusLockedError — what a queue of syncs wants. Checked every pollMs.
Called once, when the first attempt finds the lock held and waiting begins.