fix some transaction mutex deadlocks