lib.sh: Extend wait_for function to catch no resp