move applySnapshotOfDocsMap to use the same transaction as creating applied GTIDSet