[luciexe] Always send one last build to lodgog before closing stream engine
[luciexe] Always send one last build to lodgog before closing stream engine

The build result is updated right before the stream engine is closed.
Even though after the build result is updated we instruct a send, the
actual send will not happen until gevent switch to the send greenlet
thread. However, we might already close the stream engine before that so
the build with result updated would never be sent to logdog.

R=iannucci

Change-Id: I3179d89b15baf6d9f8f752e4ae381cde094dae0f
Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/recipes-py/+/2191394
Auto-Submit: Yiwei Zhang <50b2a565e2e78c292794832469a30ce5abc9959c@google.com>
Commit-Queue: Robbie Iannucci <40f3d43a28ebae3cb819288542e1c84d73d962d5@chromium.org>
Reviewed-by: Robbie Iannucci <40f3d43a28ebae3cb819288542e1c84d73d962d5@chromium.org>

luci/recipes-py,luci/recipes-py