ctdb-common: Avoid race between fd and signal events