Pick a relevant `ErrorKind` when building an `io::Error` from a `OSError` subclass.