fix errno for posix_openpt with no free ptys available
[musl] / src / thread / syscall_cp.c