Use `npm.config.get('prefix')` instead of `globalPrefix` getter

`defaults` getter in  `npmconf`'s `config-defs.js` covers all the cases
we need for global prefix resolution.

`globalPrefix` getter remains unused and should be removed from
`npmconf`.

Fixes #5343.