logrewrite: Make the message writable earlier during subst()

When using a subst() rewrite rule, make the message writable sooner, to
avoid an assertion during the substitution process.

Reported-by: Nicolas Szalay <nico@rottenbytes.info>
Signed-off-by: Gergely Nagy <algernon@balabit.hu>