Take memory used by CEvoDB/CDBTransaction into account when flushing
Take memory used by CEvoDB/CDBTransaction into account when flushing

>>> backports dash@849bf3c76e62a980e89f2be2877ea2cc3728017c
Darknet-Crypto/Darknet,PIVX-Project/PIVX,Darknet-Crypto/Darknet,PIVX-Project/PIVX,Darknet-Crypto/Darknet,Darknet-Crypto/Darknet,PIVX-Project/PIVX,PIVX-Project/PIVX,PIVX-Project/PIVX,Darknet-Crypto/Darknet,PIVX-Project/PIVX,PIVX-Project/PIVX,Darknet-Crypto/Darknet,PIVX-Project/PIVX,PIVX-Project/PIVX