s4-schema_load: Don't clean in_transaction flag until transaction is really finished