Allocate dirent for readdir_r(3)