This fixes a race where a sqlite conn isn't reserved for the read part of a MarkComplete operation after the write has already begun.
This fixes a race where a sqlite conn isn't reserved for the read part of a MarkComplete operation after the write has already begun.