Follow on work from WT-4891, ideally by adding this mode we will spot any potentially memory allocation issues earlier.
The work involved would be to add a debug config option and a related flag and check this flag in the #define or before calling it.