backport #1711 to 1.8.x - crash when using forensic logging with MT
There was a problem with DB_LOG macros, which were not thread safe, and could cause crashes when using forensic logging with database backend and MT
There was a problem with DB_LOG macros, which were not thread safe, and could cause crashes when using forensic logging with database backend and MT