unix: Move uv_shutdown assertion

Allows uv_shutdown to return an error as intended if the stream has already been closed.