While at it, inline the only remaining call to _mdirs
Directly from tag v6.0, e0733f187b34b21fa8335b9914c29a28fa2e856d.