mm/kmemleak.c: make cond_resched() rate-limiting more efficient