If /etc/nsswitch.conf contains a modules with "[NOTFOUND=return]", and that module is not available (dlopen() fails), the action is actually returned. This is due to the fact NOTFOUND is returned if dlopen() fails instead of UNAVAIL. Patch will follow.
Created attachment 4086 [details] Patch to fix the problem
The patch is wrong. I checked in a correct one.