Merge "Only add commit callback when using sync transaction" into sc-v2-dev