labs: simplify waiting for namespaces

This patch simplifies the loop used to wait for the namespaces to
appear. It makes the code errexit-clean. The names of the namespaces are
still written to the log file.

Change-Id: Ida4a4e7d5a3d8fd002b5201a5201dba22d17fdc0