TEZ-1431. Fix use of synchronized for certain functions in TezClient. (hitesh)