lib-util: rename memdup to smb_memdup and fix all callers