libs/core: reuse existing, empty networks in add_network()