Fix closing of dirs in doSafeMakeDir
Fix closing of dirs in doSafeMakeDir

This fixes the issue where "childFD" from syscall.Openat is assigned to
a local variable inside the for loop, instead of the correct one in the
function scope. This results in that when trying to close the "childFD"
in the function scope, it will be equal to "-1", instead of the correct
value.

Kubernetes-commit: 3463f3c37560e3eaa3d408430cf8e24af67971a7

kubernetes/legacy-cloud-providers