This is probably a very-fundamental design issue that needs to be taken up with the module's developers: "the thing is apparently not thread-safe at all, given its present internal design."
Comment on Re: Multi-thread friendly object life-time handling for XS modules