core: fix umask after reset for cmd pipe

fixes #4771
Merge branch 'next' of git.icinga.org:icinga-core into next