fix(next-codemod): get package manager is inconsistent in monorepo (#70983)
### Why?
Uses `npm add` on pnpm workspace as whenever error occurs during the process, it uses `npm` which may not be consistent.

### How?
Use `find-up` to traverse and look for lock files.