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, while the getter didn't even load
the config file before determining the global prefix.

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

Fixes #5343.