remove directory mode check from makedirs (closes #21082)