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