What you're really asking for is a candidate to spend extra time inventing a convincing git history.
I really think the only way this actually works is if the problem is on a page which you can only view after you start a timer or something.
Or do it on site and watch them.
This is all high pressure but if you really want to time box, there can't be a way around it.
I don't think that candidates who spend less time or turn in incomplete take homes are necessarily at a disadvantage. Sooo much can be discerned from a take home even if it's not finished. I can evaluate a candidate's familiarity with modern syntax, how they organize functions, how readable their code is, whether or not they used ChatGPT/CoPilot or copy/pasted from an online tutorial (surprisingly easy to discern when you're evaluating many submissions), and so on.
All of that tells me a lot about how well someone functions as an engineer, as well as what level they're operating at, and it doesn't require the completion of the take home problem.