[XrdCl] Fix the recursive copy code