Ensure that the heap size calculations produce the correct answers, and use `isc_mem_reget()` instead of calling `get` and `put`. Closes #4122
Ensure that the heap size calculations produce the correct answers, and use `isc_mem_reget()` instead of calling `get` and `put`. Closes #4122