fix(gateway): an edited platform allowlist takes effect after restart and on the next event (supersedes #153421)