[perl #38464] chdir() on closed handles