Simplify the code a bit by returning directly if we fail to acquire the
write lock.
Restore the original code from the end of nss_configure() rather than
gratuitously changing it.