Reset global thread variable on each request to prevent leakage