Clean up DirectoryPartition.isLeaf(), was leaking a DirectoryStream.