Do not sync grains in grains.setval when using local mode

Backport fix for not calling sync_grains when --local is being used for grains.set_vals.