BUN/MINOR: hlua: reset hlua_body variable after per-thread files loading
hlua_body variable was introduced to know if the files loading was passed or
not and emit warnings if some operations are performed during runtime. In
particular, it was used to detect calls to core.use_native_mailers_config()
during runtime.
However, the hlua_body variable was reset too early in the post-init
function, before the per-thread files loading. Because of this issue,
loading mailers.lua script using 'lua-load-per-thread' directive led to the
following error during haproxy startup:
... use_native_mailers_config: not available outside of body context
To fix the issue, this variable is now reset at the end of the function.
This patch must be backported as far as 3.3. It should fix the issue #3487.