[#1879] Added missing umask calls for 2d after getting 0 fd