unix: Move uv_shutdown assertion

Allows uv_shutdown to return an error as intended if the stream has already been closed.

Judging from the fact that the `if` statement checks for `UV_CLOSING`, I believe this to be the correct behavior. 

Refs https://github.com/JuliaLang/julia/issues/4229