Follow up fixes. Signature changes for txn_commit_stmt(), move the check for secondary keys to be engine-agnostic.