lib-util: rename memdup to smb_memdup and fix all callers (bug #10556)