Prevent race conditions by separating shared writes.
Recent revisions are kept. Restoring one creates a new revision.