proc: fix refcounting bug in proc_get_set()