s4:dynconfig: fix segfault in the set_dyn_*() functions