AP_GPS: work around scheduling issue in example code