src: fix hanging process, unref uv_check_t handle

Suggested reviewer: @sam-github and @themitchy if he feels like it.