unix, win: Added uv_has_ref function

I deleted the other branch by mistake :-S