linux-user/syscall: Replace g_malloc0 + memcpy with g_memdup