fix: net: compile error when SOCK_REFCNT_DEBUG is enabled