don't sync a readonly store

(cherry picked from 459d03d37f8183ba908e20576a1fb8578d0bf872)