LPS-49971 add locking for task transitions
LPS-49971 SF
LPS-49971 6.2.x