As a follow-up on report 9020 (https://bugzilla.samba.org/show_bug.cgi?id=9020): Winbind does not recover from a temporary failure (due to a lack of memory) of mlock(), it must be restartet.
This is a really hard problem to solve. Probably the easiest fix is to just exit on memory failure, and rely on the system daemon handling to restart us. Jeremy.