[PATCH v4 12/21] libnd: namespace indices: read and validate