don't sync a readonly store
(cherry picked from 459d03d37f8183ba908e20576a1fb8578d0bf872)
Merge pull request #473 from Incubaid/backport

don't sync a readonly store