Fix regressing in umask setting when creating folder.
Fix regressing in umask setting when creating folder.

Closes #16611

ndm2/cakephp,ndm2/cakephp,ndm2/cakephp,cakephp/cakephp,ndm2/cakephp,cakephp/cakephp,cakephp/cakephp,cakephp/cakephp