Tests: cache window.clearTimeout so that it’s not mocked

window.setTimeout is already cached; doing the same for clearTimeout
may reduce race conditions causing TestSwarm to sometimes stop executing
tests in the middle.