control.sh: Make wait_for_allocated more solid

Only trust a value of "true", and simplify the loop.