security/nss: stop excessive getpid(2) calls
FreeBSD implements pthread_atfork(3) and (as required by a nearby
code comment) deregisters callbacks located in dlclose(3)ed shared
objects. Take advantage of it instead of looping with getpid(2).
Submitted by: cem
MFH: 2017Q1