tsan: minor refactoring
use common helper macro