lwp: Fix handling of sigismember() failure