change the lazy_mark into thread-local storage