win: refactor uv_cpu_info

Fixes a couple of error handling issues. This also ensures that the
out parameters aren't clobbered when an error happens.