Fix memuse reports to guard against two issues
Fix memuse reports to guard against two issues, first is when reallocating the logs the rnode tree had active pointers from previous steps which became invalid, we now use indices, second when dumping it is possible for further logs to be added, in that case we have added a lock on reallocation so issues with invalid addresses are avoided.
Fixes #702 (closed).
Edited by Matthieu Schaller