s3:dbwrap_ctdb: split combined check in two and add descriptive debug