[ndctl PATCH v2 20/26] ndctl/namespace: Introduce mode-to-name and name-to-mode helpers