GH-3497: Fix thread-unsafe static singleton in DefaultValuesWriterFactory causing use-after-free
#3498
+53
−5