to 5.4, this should prevent segfaults when modules use libs with thread support enabled. Discussed with: ale