Fix metrics flush/add race condition.
v1.0.1