refs: don't leak the packref when deleting/renaming When we remove the ref from the hashtable, we need to free the packref.