[PATCH v2 01/11] test: Add wait_for() shell helper