windows: fix console signal handler refcount