Revert "Merge #10126: Compensate for memory peak at flush time"
After backporting PR10126 and then looking into PR10133 (https://github.com/bitcoin/bitcoin/pull/10133/files) it's clear that we've already backported up to this point and that re-implementing PR10126 is a step backwards.
Test Plan: make
Reviewers: deadalnix, Fabien, markblundeberg, #bitcoin_abc
Reviewed By: markblundeberg, #bitcoin_abc
Differential Revision: https://reviews.bitcoinabc.org/D3007