rts/eventlog: Fix erroneous marker on restarting logging
Previously calling endEventLogging() followed by startEventLogging() would produce an invalid eventlog due to an erroneous block markers left over in the header used to push the headers.
Here we fix this by clarifying the invariants surrounding the eventlog buffers and ensuring that the buffers are cleared when we finish logging.
Fixes #19078 (closed).