unix, win: Added uv_has_ref function