fix potential double-config-changed race