LogProtoServer: fixed a use-after-free after reload

self->options is a borrowed memory area, managed by the owning driver
that constructed the given LogProtoServer instance. During reload however,
the driver object itself is freed, while the LogProtoServer instance
is kept alive, thereby causing the options pointer to point into the
void.

The solution is to update the options pointer whenever the owner is changed,
chaining into a similar solution in the LogReader code which does exactly
that.

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
dbparser: fix memory leak on reload

At init time a reload was forced, but erroneously a new PatternDB instance
was created and the old one leaked. This is obviously not good for
a number of reasons:

 1) memory leak
 2) db-parser() forgot its correllation state
 3) db-parser() forgot its idea of the current time

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