ptsname_r: Make it consistent with ptsname on AIX.