fix potential mutex deadlock in Transaction::getCycleMembers