Handle EINTR throughout libnative

Closes #11214
auto merge of #11304 : alexcrichton/rust/eintr, r=brson

Closes #11214