exceptions: allow setting via unix-socket
The idea is that these are "simple" enough that we could allow them to be changed in a more dynamic
way, not just during initialization.
This could probably be done via ATOMIC variables.
This is follow-up work of #5219.