[ndctl PATCH v5 1/6] libndctl: Refactor out add_dimm() to handle NFIT specific init