misc: pmem_wrapper: Add dedicated methods for allocation and free.

This simplifies the code & adds allocation parameters directly in the
allocation data, removing the need of calling additional functions.

Change-Id: Icc3750ebd5ad439469adb5ac8a8fbad2c2af6517