bug fix: sync threads for shared reduction