misc: pmem_wrapper: Add support for flush_pmem_file/fd.

Change-Id: Ic6dda226e7e2f876ad000f30a9449208f2286a38