unix: correct error when calling uv_shutdown twice

This is a backport of a284b90 for v0.10 branch