Had some spare time today and wanted to fix this issue.
The attached patch instruments nss and pam clients to use a pthread
mutex to prevent multiple threads from stomping on each other.
The patch is quite simple and basic testing seem to show no issues.
It may be worth of back-porting to older versions.
Simo.
--
Simo Sorce * Red Hat, Inc * New York