Replace busy waiting loop by join().
Replace busy waiting loop by join().

Change-Id: I6cf48c49c3684d339937625eda40cca1183a1916

bsautron/libqi,aldebaran/libqi-java,aldebaran/libqi-java,vbarbaresi/libqi,aldebaran/libqi,aldebaran/libqi-java,aldebaran/libqi,aldebaran/libqi