Prevent from assertion on invalid FD when other thread caused that errno is set to EINPROGRESS