Fix infinite loop in UnitTestCommon.locateThreddsRoot()