Ensure safe umask before writing temporary repo from remote
Ensure safe umask before writing temporary repo from remote

pkg(8) already sets umask(022) on startup, but this may be called via
the library interface.

Reported by:	Coverity Scan

en90/pkg,khorben/pkg,junovitch/pkg,Open343/pkg,skoef/pkg,khorben/pkg,khorben/pkg,skoef/pkg,Open343/pkg,en90/pkg,junovitch/pkg