[CORE] vmm_devres: Add resource managed malloc, zalloc, and free APIs

This patch adds linux-like resource-managed memory allocation APIs
for driver porting.

Signed-off-by: Anup Patel <anup@brainfault.org>