ctdb-daemon: Add implementation for CTDB_CONTROL_DB_ATTACH_REPLICATED control