pty4j updated to avoid multi-threading problem with ptsname()