A server always decrements newnfs_numnfsd before it cleans up its pool.
The nfsd.ko unload check can then see zero while cleanup is still running.
To fix the erratic behavior we just move the decrement after nfsrvd_init(1) returns.
Sponsored-by: VersatusHPC