Thanks for the follow up, good to know its not something in the lib.
Interesting to see how many threads reveal char arrays (C strings), buffer overflows, memory leaks, and other variable mishaps as the root cause of some locking behavior. Extra care is needed with these data types, especially when manipulating them and using reference/dereference operators on them.