util: introduce a new data type refcnt_t for reference counting
sheep: use refcnt in object cache
main_refcnt_t