s4-ldb: fixed a transaction error on prepare_commit