Fix: reading the is_dirty flag from the foo struct through the free_entry when the refcount is 0 so debug() doesn\t output crap