When running puppet master as root, the log dir needs to
be permissioned as the service user (usually 'puppet').
This behavior had been inadvertently changed in the
work relating to #7749, but is fixed herein.
This commit delays the closing of stdin/stdout/stderr to a time
a little later in the daemon startup process, in hopes of providing
a larger window in which the console is available as a fallback for