pmem: add pmem_persist_msync to API, add libpmem.c