cocoa: fix uv_loop_delete() assertion failure