lib: Fix error talloc leaks in ctdb_read_packet()