statement-store: avoid blocking event loop during initial sync (#12814)