clearInterval should work with mock clock

When using the mock clock, a function should actually stop if it is started by setInterval and then calls clearInterval for itself.  This is not true currently, but this patch fixes the problem.