I of course also appreciate the work @space88man put here into that. Maybe I am wrong, but right now the db_* modules in stable branches are not using the pthread approach. My question was about if its really necessary to apply this pthread logic to the DB modules. If the db_* modules are not using TLS, I would expect no problems, or I am wrong?