commonsys-intf: qdMetaData: Add get/setMetaData variants that unmap metadata

Add get/setMetaDataAndUnmap(..) api that remove the meta-data
mapping and reset the mapped pointer in handle.
Use these versions in setMetaData called during alloc to
ensure allocating process does not duplicate invalid
base address of metadata (i.e when native_handle is cloned
without importing)

Change-Id: Id4dc91700bc0cf5eace947fcaafacff9497a49bb
CRs-Fixed: 2265196
2 files changed