use static private EnvironmentBean to avoid GC overhead

This is a backport of jbosstm/narayana#603 to the 4.17 branch. It avoids GC overhead associated with performing the Bean lookup with each invocation of TxStats.enabled()