ctdb-ipalloc: Add error handling to IP allocation