misc: pmem_wrapper: Add support for flush_pmem_file/fd.

Change-Id: Ic6dda226e7e2f876ad000f30a9449208f2286a38
Merge pull request #1 from Vynikal/OptKernel-rebase

misc: pmem_wrapper: Add support for flush_pmem_file/fd.