libc/nss/db-Makefile and/or libc/nss/makedb.c should be updated to create new databases with atomic file operations to prevent failures of a very important suite of syscalls while the new databaes are being [re-]generated.
That code is not used and not supported.