This should get the DEBUG=1 build further than the net.

* We need to start with a zero reference count, and we also don't want to
  be deleted by that mechanism.
* Note, I could not test the changes yet.