JBIDE-15373 Check all code run by builders for thread safety

Mistake in the previous commit is fixed.