ctdb-common: Fix use-after-free error in comm_fd_handler()