When I weigh the benefit (avoiding a theoretical race condition, not experienced in hundreds of executions) against the drawback (maintaining application code that only facilitates testing), I lean in favor of the risk. I'm only saying this because you seem a little uncertain yourself. If, as my reviewer, you would prefer to see the change to the application, say the word and I'll make it so.