The rationale for caching the datadir is given as
0 // This can be called during exceptions by LogPrintf(), so we cache the
1 // value so we don't have to do memory allocations after that.
However, since 8c2d695c4a45bdd9378c7970b0fcba6e1efc01f9, the debug log location is actually cached itself in m_file_path
.
So remove the now-useless caching.