To allow tracking the multitude of thread-safety potential issues, I've created a wiki page with a checklist that we can slowly work through to help ensure we've caught all of the gotchas in converting to a thread-safe core and libsmbclient. See http://wiki.samba.org/index.php/Franky/Threadsafe_checklist
We have two nearly identical bugs for the same issue: Thread safety regarding s4. Therefore I merge both reports in one.
*** Bug 5211 has been marked as a duplicate of this bug. ***
*** Bug 7655 has been marked as a duplicate of this bug. ***