[sr-dev] [kamailio/kamailio] thread-local: database module fixes need to be back-ported to 5.7 (Issue #3738)