unix, windows: add assertion in uv_loop_delete