CA-112572: networkd: protect IP watcher thread with an exception handler

This needs to go in the xcp-networkd repo as well.