Learned something about autocommits again, thanks to your question. As an exercise I implemented Ronald's answer in an ACo_OrderLine.
Take into consideration that the commit of the Order_UnCommitted can return false.
Could you not fix it when you commit the object that triggers the autocommits? You do not say what you want to do for an action but it seems to me that you could create some submicroflow where you do your stuff and run that microflow after each commit on objects that might trigger autocommits.
It would be great if there would be a possibility for microflows to deactivate Auto Committ behvior. Maybe with a hint about the risk, but it could help to prevent your case in very special situations. Could be something for the ideas forum.