shared: simplify get function (hashmap)

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>