This approach sort of works. But there is a bug in ssh that causes it to occasionally hang
when working with a control master. So it's not yet a general solution. :(
(And no, I've no idea what triggers this bug, it appears to be platform-dependent, showing up
more often on MacOS X. And yes, it's been reported to the OpenSSH developers.)