Fixed excessive synchronization problem in contractTensors

Signed-off-by: Dmitry I. Lyakh <quant4me@gmail.com>
1 job for devel in 5 minutes and 46 seconds (queued for 4 seconds)