meta-google: gbmc-bridge: Fix DHCP term

The previous wait call was unable to monitor the process since it didn't
start as a child of the term script. Instead, we just need to poll proc
until the process has completed as this information is accessible.

Change-Id: I8dec1218b5f451aa756329420211b3f6de500d7f
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp-term.sh b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp-term.sh
index 29fbbde..6a0c8b0 100644
--- a/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp-term.sh
+++ b/meta-google/recipes-google/networking/gbmc-bridge/gbmc-br-dhcp-term.sh
@@ -25,7 +25,9 @@
 # If the DHCP configuration process is running, wait for it to finish
 if pid="$(cat /run/gbmc-br-dhcp.pid 2>/dev/null)"; then
   echo "DHCP still running ($pid), waiting" >&2
-  wait "$pid"
+  while [[ -e /proc/$pid ]]; do
+    sleep 1
+  done
 fi
 echo "Stopping DHCP processing" >&2
 systemctl stop --no-block gbmc-br-dhcp