Make buffer-objfwd variables work per-thread.