ctdb-tests: Factor out function check_cattdb_num_records()