gqtp: fix inverted sync/async condition