ctdb-tests: Allow wait_until() to be used in unit tests