Created attachment 101 [details]
Patch for thread-safety issues during binding
The patch uses the same test previously attached. The implementation is
slightly different than the other patch. I don't think the reentrancy checking
should be necessary, but I don't know if other bindings actually invoke this
method again.