[daemon] change umask after creating pid file [applied]