inject: Save a reference to clearTimeout

Follows-up d81e522ecb which saved a reference to setTimeout.

Fixes #298.