use single mutex for all instances
clean idp_cert
Merge pull request #1 from dannyb/thread-safety

Thread safety