JCR-2288: JCR-2309 Avoid replication for local changes