fix spurious EINTR errors from multithreaded set*id, etc.