[ff2-lf] Bugfix: make 'inTransaction' a ThreadLocal