lang/python311: Fix packaging when WITHOUT_NIS is defined
PR: 267399 Reported by: Raivo Hool <raivo@lehma.com>