[common] Use thread_local (instead of static) objects for access checks