Awhile back I tried to do this on my practice belay setup in my garage but it's exceedingly hard to do reliably.
It's one of those one-in-a-thousand circumstances that inform our choices as climbers.
A very good tip included was to use a locker on the bolt-end (or rope end too, if you wish) on crucial draws, like before cruxes and after run-out sections.
Similar discussions on other sites always suffix that with "even though I get laughed at for doing it", but safety is no joke!