unix, win: Added uv_is_refd function