added Synchronizer::isLocked() and replaced code in testArmZabbixAPI::setup() with it to make code simple.