Fix assert fail when clearing and adding timeouts from within a timeout