ctdb-daemon: Fix database attach deferral logic