prevent overwriting peers.dat if we have 0 addresses

- fixes #4669
change addrman::size() to return size_t