Since my last attempt invited comment and didn't get applied, I'm taking another tack. This approach is safer, since it doesn't depend on dlopen returning the same address for the same library. I hope it'll also address Hans's concern about lock serialization. --Juan