templates: don't use the global configuration variable in log_template_new

That shouldn't be used outside of the configuration load/reload mechanism,
and we get it as a parameter anyway.

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>