shared: split mempool implementation from hashmaps

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>