Fixed threading problem that appears to have been in Convergence for many years.  See the warning at the top of https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes/js-ctypes_reference/Callbacks for a brief explanation.
Merge pull request #3 from JeremyRand/master-threading-fix

Fix threading segfault.