[PATCH 1/2] util: Add l_memdup function for allocation and copying a memory buffer