Ignore EPERM as well if the filesystem doesn't create a directory of the
expected mode, as part of trying to deal with e.g. CIFS (Bug#4134).