PG: mark_log_for_rewrite on resurrection

Fixes: #8777
Backport: firefly
Signed-off-by: Samuel Just <sam.just@inktank.com>
Merge remote-tracking branches 'origin/wip-9054', 'origin/wip-9240', 'origin/wip-9205' and 'origin/wip-8777' into wip-sam-testing