[PATCH 4.17 145/220] linvdimm, pmem: Preserve read-only setting for pmem devices