Restore setTimeout after it is mocked

Without restoring this mock, later tests that rely on `setTimeout` can fail (see #2063).